Skip to main content

Badge

Inform users about the status of an object or indicate that an action has been completed.

'base' | 'subdued'

Modify the color to be more or less intense.

'' |

The type of icon to be displayed in the badge.

'start' | 'end'

The position of the icon in relation to the text.

string

A unique identifier for the element.

'small' | 'base' | 'small-100'

Adjusts the size.

'auto' | 'neutral' | 'critical'

Sets the tone of the Badge, based on the intention of the information being conveyed.

Was this section helpful?

Code

<s-badge>Default</s-badge>
<s-badge tone="critical">Expired</s-badge>
<s-badge color="subdued">Free</s-badge>

Preview