Custom Component: Is there a way to make additional props available based on the value of another prop?

  • 1
  • Question
  • Updated 5 months ago
Hi,

I'm building my first custom component and I would like to make it as configurable by the user as possible. I'm wondering if there is a way to show different props to the user based on one of their previous selections? So for example with the standard Image Component if you select " Attachment" as the image source you get different props than if you selected "Static Resource".  Is there a way we can implement the same type of logic in a custom component? 
BTW custom components are awesome! 
Photo of Tim Wilson

Tim Wilson

  • 504 Points 500 badge 2x thumb

Posted 5 months ago

  • 1

Be the first to post a reply!