Components
Badge
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.
Installation
pnpm dlx shadcn@latest add https://reui.io/r/badge.json
Examples
Default
Loading
Stroke
Loading
Variants
Loading
Outline
Loading
Light
Loading
Circle
Loading
With Dot
Loading
With Icon
Loading
Remove Button
Loading
Square
Loading
Size
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 | solid | |
size | md | |
shape | default | |
disabled | false | |
asChild | false | |
className |
BadgeButton
Prop | Type | Default |
---|---|---|
variant | default | |
asChild | false | |
className |
BadgeDot
Prop | Type | Default |
---|---|---|
className |