Label

Use the label component to add contextual metadata to a design.

Page navigation navigation

React
readyNot reviewed for a11y
Rails
readyNot reviewed for a11y

A label is a piece of text that is visually stylized to differentiate it as contextual metadata. It can be used to add a status, category, or other metadata to a design.

React examples

Default

Default

Style variants

The Label component ships with different visual variant options.

DefaultPrimarySecondaryAccentSuccessAttentionSevereDangerDoneSponsors

Size variants

The Label component can also be rendered in a large size variant.

Small (default)Large

Props

Label

NameDefaultDescription
variant
'default'
| 'default' | 'primary' | 'secondary' | 'accent' | 'success' | 'attention' | 'severe' | 'danger' | 'done' | 'sponsors'

The color of the label

size
'small'
'small' | 'large'

How large the label is rendered

0 ## Related links