Badge
v0.4.4StableA small status label with semantic color variants.
Examples
Open all 7 →Properties
Badge props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Content to render inside the badge |
className | string | — | Additional class names to merge with the component root element |
size | "sm" | "md" | md | Controls the size; defaults to md |
variant | "default" | "primary" | "success" | "warning" | "error" | "info" | default | Controls the color scheme; defaults to default |
Also accepts the native attributes of its root element (className, aria-*, event handlers, …).