Components
Badge (unified)
UI Library:
A Badge is a small, visually distinct element used to display contextual metadata, such as status, category, or notifications, enhancing the clarity and organization of your design.
Loading
Installation
pnpm dlx shadcn@latest add @toui/badge
Examples
Light
Loading
Outline
Loading
Circle
Loading
Shapes
Loading
With Dot
Loading
With Icon
Loading
Remove Button
Loading
Square
Loading
Sizes
Loading
asChild
Loading
Disabled
Loading
API Reference
This component provides a customizable badge system with flexible variants, sizes, and appearances.
Badge
| Prop | Type | Default |
|---|---|---|
variant | secondary | |
appearance | default | |
size | md | |
shape | default | |
disabled | false | |
asChild | false | |
className |
BadgeButton
| Prop | Type | Default |
|---|---|---|
variant | default | |
asChild | false | |
className |
BadgeDot
| Prop | Type | Default |
|---|---|---|
className |
Credits
- Built with Radix UI Slot.