Components/Chip
Chip
Compact interactive tags for categories, labels, and filter selections. Supports removable mode, icons, and 6 color variants in 3 visual styles.
import { Chip } from "@animui/ui"Colors
DefaultBlueGreenAmberRedViolet
Variants
DefaultOutlinedFilled
Removable (interactive)
ReactTypeScriptMotionTailwind
With icon
LabelCategory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "outlined" | "filled" | "default" | Visual style of the chip. |
color | "default" | "blue" | "green" | "amber" | "red" | "violet" | "default" | Color scheme. |
removable | boolean | false | Show an X button to remove the chip. |
onRemove | () => void | — | Called when the X is clicked. |
onClick | () => void | — | Makes chip clickable (shows pointer cursor). |
icon | ReactNode | — | Icon rendered before the label. |
active | boolean | false | Show a ring to indicate selected/active state. |
disabled | boolean | false | Disable interactions. |