Badge
A component for displaying labels or indicators in a badge style.
In this guide, you'll learn how to use the Badge component.
Was this example helpful?
Usage#
API Reference#
This component is based on the div element and supports all of its props
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
size | "2xsmall"| "xsmall"| "small"| "base"| "large" | "base" |
rounded | "base"| "full" | "base" |
color | "green"| "red"| "blue"| "orange"| "grey"| "purple" | "grey" |
Was this helpful?
Examples#
Badge Colors#
Was this example helpful?
Badge Sizes#
Was this example helpful?
Badge Rounded Variants#
Was this guide helpful?