Badge
Displays a badge or a component that looks like a badge.
Usage
API Reference
| Input | Type | Default |
|---|---|---|
| variant | BadgeVariants['variant'] | 'solid' |
| class | string | '' |
CVA variants
| Prop | Options | Default |
|---|---|---|
| variant | solid | secondary | outline | destructive | solid |
Component Source
Install via CLI:
npx @voltui/cli add badgeTypeScript
Loading editor…
Copy this code to your project. The component uses class-variance-authority.