Badge
Badge is used to inform the user of the status of specific data.
Import
import { Badge } from '@sigx/daisyui';
Basic Usage
Loading preview...
Colors
Loading preview...
Outline
Loading preview...
Soft
Loading preview...
Dash
Loading preview...
Sizes
Loading preview...
Empty Badges
Empty badges can be used as status indicators or dot badges.
Loading preview...
Badge in Text
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'ghost' | 'neutral' | undefined | Badge color variant |
size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | undefined | Badge size |
badgeStyle | 'outline' | 'soft' | 'dash' | 'ghost' | undefined | Badge style modifier |
outline | boolean | false | Shorthand for outline style (overridden by badgeStyle) |
class | string | undefined | Additional CSS classes |