Basic Usage
Variants
Eight variants cover the most common use cases — five base styles from shadcn plus three semantic colors for status indicators.In Context
Badges pair well with cards and other layout components as inline status indicators:API Reference
Badge Parameters
Badge text. Can be passed as a positional argument.
Visual style:
"default", "secondary", "destructive", "outline", "ghost", "success", "warning", "info".Additional Tailwind CSS classes appended to the component’s built-in styles.
Protocol Reference
Badge