Chip
Primitivesatlas-chipExamples
Variants
Chips represent attributes, tags or filters.
Removable
Set removable to show a remove button, named after the chip ("Remove Angular"); handle (removed) to drop the chip. The button disappears with it, so move focus to the next chip (or the previous one, or the Reset button).
Filter chips
Active filters as chips with a leading icon. removeLabel sets the first word of each remove button's name ("Clear Status: Active"); after a removal, focus moves to the next chip, then to "Clear all".
API
Generated from the library source, so it always matches the code.
AtlasChipComponent atlas-chip
| Input | Type | Default | Description |
|---|---|---|---|
| variant | ChipVariants['variant'] | 'primary' | primary , secondary , default (neutral with a border), outline or muted . |
| removable | boolean | false | removed . |
| removeLabel | string | undefined | undefined | chip.remove . |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| removed | void |
Types
ChipVariants
type ChipVariants = VariantProps<typeof chipVariants>