variant

A named option of a component, such as intent primary or danger and size sm or lg, each mapped to its own styling.

In more detail

Variants replace piles of boolean props: instead of isPrimary and isDanger (which can both be true), one intent prop allows exactly one value. Each variant axis is independent, so size and intent combine freely.

Related terms

Taught in

References