Skip to main content

Appearances and variants

Subtle is the default: a light background with darker text. Outline has a white background and a coloured ring. Solid is the strongest emphasis. Each appearance has the six variants from the palette. Success, info and warning solid use dark text because white text on these colours does not reach 4.5:1, so keep the text class when you copy them.

Subtle

Primary Dominant Success Info Warning Danger

Outline

Primary Dominant Success Info Warning Danger

Solid

Primary Dominant Success Info Warning Danger

Sizes

Three sizes: small, medium and large. Small is the default. The label is the text prop.

Small Medium Large

Dot and icon

dot or icon puts a dot or an icon before the label. Both are decorative and hidden from assistive tech, so the label must carry the meaning.

Active Pending Failed Draft Verified Sent Overdue

Counts

Put a number next to a label, or on top of an icon button. For the icon button, add visually hidden text that says what the number counts.

Inbox 128