Skip to main content
Question

Component variants

  • September 4, 2023
  • 0 replies
  • 149 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.