Sajari UI

Badge

Badges are used to highlight an item's status for quick recognition.

Import

Usage

Editable Example
Default

Appearance

Pass the appearance prop to customize the color of the Badge based on usage.

Editable Example
DefaultPrimarySuccessWarningDangerNote

Badge Variants

Pass the variant prop and set to either subtle or solid to get a different style.

Editable Example
DefaultPrimarySuccessWarningDangerNote

Composition

You change the size of the badge by passing fontSize prop.

Editable Example

Something Pro 💪

Props

The Badge component composes Box component so you can pass props for Box.

NameTypeDefaultDescription
variantsubtle, solidsubtleThe style variant of the badge.
appearancedefault, primary, success, warning, danger, notedefaultThe color scheme to use for the badge based on it's purpose.