Introduction
Variant properties let you create different versions of a design component in one place. Boolean properties switch between two states like on/off. Enum properties let you pick from multiple options like colors or sizes. This helps keep your design organized and easy to update.
When you want a button that can be either enabled or disabled without making separate components
When you need a card that can have different background colors like red, blue, or green
When you want to switch between icon sizes like small, medium, and large in one component
When you want to toggle visibility of an element inside a component, like showing or hiding a badge
When you want to manage multiple style options for a component without duplicating it