What is Variant?
A named version of a component that looks or behaves differently, like a button that can be `primary`, `secondary`, or `destructive`. Variants live inside one component definition.

1 component · 3 variants
A variant is a component with...
Write it in your own words in the app.
In real work
Add a destructive variant to the Button. Red colors, same API as primary and secondary. All three in one component.
In the illustration
The same mould presses three castings; the dial clicks primary → secondary → destructive and each casting changes its face (solid, outline, warning stripe) while keeping the same shape and the same pins.
Add a destructive variant to the Button in your component library: red background, white text, same height and focus ring as primary.
Try it now
The fastest way to learn a word is to use it. Open this line in the agent you already work in and watch what it does. Change the tool to the one you use.
Go further
01Practice
Make it stick
One term a day, a short quiz, and sentence practice that checks your own words.
02Verify
Prove you know it
Pass the quiz and keep it in a Skills Wallet you can share with anyone who needs proof.
03Career
Find the work that uses it
See which roles lean on this vocabulary, and what they pay in year one.




