Chip — Playground

px
Design
host element
appearance
size
State
html.html
<span kuiChip removable removeLabel="Remove Design" (removed)="removeTag()">
  <span class="kui-chip-label">Design</span>
</span>
Chip events
  • No events yet.
NameTypeDefaultDescription
appearance'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info''neutral'Semantic visual treatment mapped to Kikita UI status tokens.
size'xs' | 'sm' | 'md' | 'lg''md'Chip size. sm is the size used inside Select and Combobox controls. Falls back to defaults.chip.size, then the global defaults.size.
disabledbooleanfalseReduces opacity and makes the nested remove action inert.
invalidbooleanfalseShows the invalid border treatment.
removablebooleanfalseRenders a default remove button (crossmark icon) as the last child. Primary way to make a chip removable; use kuiChipRemove instead only for a custom icon or extra content.
removeLabelstring | undefined'Remove'Accessible name for the default remove button rendered by removable. Provide a value-specific label, for example "Remove Design".
removedoutput: void-Emitted when the default remove button or a nested button[kuiChipRemove] is activated.
kuiChipRemovedirective on button-Marks a native button as the chip remove action. Use only when the default removable button is not enough (custom icon, extra content); do not combine both on the same chip. Needs its own aria-label, for example "Remove Design".
--kui-chip-bgCSS color-Chip background color.
--kui-chip-bg-hoverCSS color-Chip background color on hover for interactive chips.
--kui-chip-borderCSS color-Chip border color.
--kui-chip-textCSS color-Chip label text color.
--kui-chip-radiusCSS length-Chip corner radius.
--kui-chip-height-xsCSS length-Chip block size for size="xs".
--kui-chip-height-smCSS length-Chip block size for size="sm".
--kui-chip-height-mdCSS length-Chip block size for size="md" (default).
--kui-chip-height-lgCSS length-Chip block size for size="lg".
--kui-chip-remove-colorCSS color-Remove icon color.
--kui-chip-remove-color-hoverCSS color-Remove icon color on hover.
--kui-chip-disabled-opacityCSS number-Opacity applied to the whole chip when disabled.
KuiChipOptionsinterface-Shape of defaults.chip: size and removeIcon (takes precedence over defaults.icons.remove).

Inputs and outputs verified against @kikita-labs/ui v2.0.0 public typings.