Skip to main content
Question

Design System Component to many Variants

  • January 24, 2025
  • 3 replies
  • 49 views

Mats Eggers

I am setting up a Design System and I was wondering if it’s really necessary to create all these Variant e.g. for a Tab Bar or other Components that have a different amount of Items that should be controlled through the properties. Do you maybe got any other best practices for that? I’d just love to make everything a bit thinner that there are not soo many different Variants needed.

 

3 replies

tank666
  • 4859 replies
  • January 24, 2025

As far as I can see from your screenshot, I can suggest you to reduce the component set exactly by half by applying a boolean property to the tab icons.


Mats Eggers
  • Author
  • New Member
  • 1 reply
  • January 24, 2025

@tank666 Yes I know what you mean but I think it doesn’t work because it’s only allowed to show either all Tab Items with an Icon or none, and the Tab Items are a nested Component

 


tank666
  • 4859 replies
  • January 28, 2025

@Mats Eggers, then you can consider the following simplified example:

 


Reply


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