Badge
Displays a small amount of information to the user. It is usually a small, circular or rounded rectangle containing numbers or text.
Import
Usage
Sizes
You can use the size
prop to change the size of the badge.
extra smallsmall
Pill
You can use the pill
prop to make the badge pill shaped.
Technology
Colors
You can use the color
prop to change the color of the badge.
primarysecondaryamberbluecyanemeraldfuchsiagraygreenindigolimeneutralorangepinkpurpleredroseskyslatestonetealvioletyellowzinc
Props
- color?
-
"primary"
"secondary"
"slate"
"gray"
"zinc"
"neutral"
"stone"
"red"
"orange"
"amber"
"yellow"
"lime"
"green"
"emerald"
"teal"
"cyan"
"sky"
"blue"
"indigo"
"violet"
"purple"
"fuchsia"
"pink"
"rose"
The badge color.
Default:
slate
- pill?
-
boolean
Whether the badge should be pill shaped.
Default:
false
- size?
-
"xs"
"sm"
The badge size.
Default:
xs
API Interface: BadgeProps