Skip to content

A compact element that represents an attribute, tag, or action.

atlas-chip

Examples

Variants

Chips represent attributes, tags or filters.

PrimaryDefaultSecondary

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).

AngularSignalsTailwindAccessibility

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".

Status: Active Owner: Me Contains: invoice

API

Generated from the library source, so it always matches the code.

AtlasChipComponent atlas-chip

InputTypeDefaultDescription
variant ChipVariants['variant']'primary' Colour: primary , secondary , default (neutral with a border), outline or muted .
removable booleanfalse Shows a remove (×) button named "<removeLabel> <chip text>"; it emits removed .
removeLabel string | undefinedundefined First word of the remove button's name, before the chip text. Defaults to the configured chip.remove .
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
OutputPayloadDescription
removedvoid The remove button disappears with the chip: move focus to a neighbour in the handler.

Types

ChipVariants

type ChipVariants = VariantProps<typeof chipVariants>