Skip to content

Chip

<ax-chip> is a small token that displays projected content with an optional remove (×) button. It’s the shared building block for Tag input and the Combobox chips / MultiSelect trigger, and is usable on its own.

The remove button calls stopPropagation() before emitting (remove), so a chip placed inside a clickable container (e.g. a combobox trigger) never toggles it.

import { AxChipComponent } from '@axisui-ng/forms';
<ax-chip>Read-only</ax-chip>
<ax-chip removable [removeAriaLabel]="'Remove ' + tag" (remove)="drop(tag)">{{ tag }}</ax-chip>
InputTypeDefaultNotes
removablebooleanfalseShows the × button. (Bare attribute works: <ax-chip removable>.)
disabledbooleanfalseDims the token, disables removal.
removeAriaLabelstring'Remove'Accessible label for the × button — pass Remove {label}.
OutputPayloadNotes
removevoidEmitted when the × button is activated (propagation stopped).
SlotNotes
Default (<ng-content>)Chip label / content. Truncated when long.

The remove control is a native <button> with aria-label from removeAriaLabel. Provide a descriptive label (e.g. Remove {tag}) when chips appear in a list.

Interactive examples live in Storybook under Forms / Chip. Run pnpm storybook to explore them.