Skip to content

Chips

Chips are small, rounded tokens for labels, statuses, filters, or dismissible tags. They support a text label, optional leading media (icon or avatar), optional close control, size and colour variants, and default vs outline fills.

Loading Code Block...

The default chip is a neutral chip. Add text to render a neutral chip with a label.

Chip
Loading Code Block...
Chips
Loading Code Block...

With showClose, a close icon appears at the end of the chip. Clicking it hides the chip in the UI.

Chips
Loading Code Block...

Sizes sm, md, and lg adjust padding, height, and icon metrics.

sm chip
md chip
lg chip
Loading Code Block...

Semantic colours map to theme backgrounds and borders. neutral is the default in the implementation when you omit color. The brand variant renders Hubtel-aligned teal styling (#009E96) and is available in both frameworks.

primary
neutral
brand
success
danger
warning
info
Loading Code Block...

type="default" uses filled semantic colours. type="outline" keeps a border-forward, lighter surface while preserving the same colour key. Toggle the dropdown below to see every colour rendered in the selected type. If no type is provided, default is used.

primaryneutralbrandsuccessdangerwarninginfo
Loading Code Block...
  • Treat chips as static labels unless they are interactive; the close control is a clickable region—ensure text (or an aria-label via spread attributes) conveys purpose when the chip is removable.
  • Leading images should use empty alt if decorative, or meaningful alt if they convey information.