Chip
A compact element representing an attribute, category, or action. Chips are used to label, filter, or organize items.
Installation
bash
npx @zizigy/capsule add ChipUsage
Basic Chip
html
<capsule-chip>Basic Chip</capsule-chip>Variants
html
<capsule-chip variant="outline">Outline</capsule-chip>
<capsule-chip variant="ghost">Ghost</capsule-chip>Sizes
html
<capsule-chip size="sm">Small</capsule-chip>
<capsule-chip>Default</capsule-chip>
<capsule-chip size="lg">Large</capsule-chip>Color
html
<capsule-chip color="primary">primary</capsule-chip>
<capsule-chip color="success">success</capsule-chip>
<capsule-chip color="danger">danger</capsule-chip>
<capsule-chip color="warning">warning</capsule-chip>Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
variant | string | - | Chip style variant |
size | string | - | Chip size |
type | string | - | Type attribute |
color | string | - | Chip color (e.g. 'primary', 'success', 'danger', HEX, RGB, etc.) |
Variant Values
outline- Outlined chip with borderghost- Ghost chip without background
Size Values
sm- Smalllg- Large
Accessibility
- ✅ Keyboard interaction support
- ✅ ARIA attributes for screen readers
