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
.
Name | Type | Default | Description |
---|---|---|---|
variant | subtle , solid | subtle | The style variant of the badge. |
appearance | default , primary , success , warning , danger , note | default | The color scheme to use for the badge based on it's purpose. |