Badge#

Badge is used to inform the user of the status of specific data.

Import#

TSX
import { Badge } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

Colors#

TSX
Loading preview...

Outline#

TSX
Loading preview...

Soft#

TSX
Loading preview...

Dash#

TSX
Loading preview...

Sizes#

TSX
Loading preview...

Empty Badges#

Empty badges can be used as status indicators or dot badges.

TSX
Loading preview...

Badge in Text#

TSX
Loading preview...

Props#

PropTypeDefaultDescription
variant'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'ghost' | 'neutral'undefinedBadge color variant
size'xs' | 'sm' | 'md' | 'lg' | 'xl'undefinedBadge size
badgeStyle'outline' | 'soft' | 'dash' | 'ghost'undefinedBadge style modifier
outlinebooleanfalseShorthand for outline style (overridden by badgeStyle)
classstringundefinedAdditional CSS classes