Skip to main content
Question

Component variants

  • September 4, 2023
  • 0 replies
  • 123 views

Adnan_Afana

Hello there,
I’m creating a chip component using material UI and I need to add an “adornments” variant that has three values:

  • Use avatar: It’s a component on my system
  • Use icon: I have the icon library on Figma
  • None: don’t use anything
    I need to show two options, use icon or avatar ONLY if the “adornments” is active, What is the best way to handle this?
This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings