Skip to content

KBadge ​

示例 ​

Variants

DefaultSecondaryOutlineDestructiveGhost

Small inline badge/tag component with variant styling.

Props ​

NameTypeDefaultDescription
variant'default' | 'secondary' | 'outline' | 'destructive' | 'ghost''default'Visual style variant of the badge.
theme'auto' | 'day' | 'night''auto'Theme mode. auto follows the current theme; day and night force a specific mode.

Slots ​

NameDescription
defaultBadge content (text or icons).

Basic Usage ​

Active