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
Section titled “Import”import { AxChipComponent } from '@axisui-ng/forms';<ax-chip>Read-only</ax-chip>
<ax-chip removable [removeAriaLabel]="'Remove ' + tag" (remove)="drop(tag)">{{ tag }}</ax-chip>Inputs
Section titled “Inputs”| Input | Type | Default | Notes |
|---|---|---|---|
removable | boolean | false | Shows the × button. (Bare attribute works: <ax-chip removable>.) |
disabled | boolean | false | Dims the token, disables removal. |
removeAriaLabel | string | 'Remove' | Accessible label for the × button — pass Remove {label}. |
Outputs
Section titled “Outputs”| Output | Payload | Notes |
|---|---|---|
remove | void | Emitted when the × button is activated (propagation stopped). |
| Slot | Notes |
|---|---|
Default (<ng-content>) | Chip label / content. Truncated when long. |
Accessibility
Section titled “Accessibility”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.
Storybook
Section titled “Storybook”Interactive examples live in Storybook under Forms / Chip. Run pnpm storybook to explore them.