Skip to main content

Chip

Chips display selections, filter criteria or user-entered values. Unlike a badge, a chip is interactive: it can be selected, removed or change the content it filters, and it is usually shown in a group.

Base
Custom component
Mantine
None — built here
Import
{ Chip } from '@multiconsult-group-products/design-system'
Source
src/components/Chip/Chip.tsx
src/components/Chip/Chip.module.css
Name collision with @mantine/core

@mantine/core also exports a component called Chip. It is a different component with a different API.
Import Chip from @multiconsult-group-products/design-system.

Usage​

Use Chips when users need to choose between options, such as filtering content, selecting categories or setting preferences. Chips work well in groups where users can make single or multiple selections.

variant
size
sm
md
lg
withRemoveButton
React
<Chip variant="monocrom" size="md" selected={selected} onSelectedChange={setSelected} removeLabel="Fjern Oslo">Oslo</Chip>

Only the height changes across the size scale. The chip is always fully rounded.

Variants​

VariantWhen to use
monocromThe default, and the first choice for filters. The selected chip stands out clearly from the rest.
blueAn alternative to monocrom for filters, using the accent color for the selected state.
neutralUse when selections should have a subtle appearance without drawing unnecessary attention.

Props​

PropertyTypeAllowed valuesDefaultDescription
children*ReactNode——The chip label.
variantChipVariantmonocrom · neutral · bluemonocromControls the chip's visual treatment.
sizeChipSizesm · md · lgmdSets the chip height — 24, 32 or 40px. Font size is constant across the scale.
selectedboolean—falseMarks the chip as chosen.
onSelectedChange(selected: boolean) => void——Called with the next selected value when the chip is activated.
withRemoveButtonboolean—falseShows the trailing remove button.
onRemove() => void——Called when the remove button is activated.
removeLabelstring—FjernAccessible name of the remove button.

* Required

Accessibility​

The chip and its remove button are two separate buttons. The chip announces its selected state as pressed or not pressed.

Always set removeLabel to name the value being removed — "Fjern Oslo", not the default "Fjern". See Accessibility.