Skip to content

Feedback

Chip

Pill-shaped labels for filters and removable tags.

import { Chip } from '@var-ui/react';
DocsAPI

Chip

Compact pill-shaped labels. Use ChipGroup for coordinated single- or multi-select filter chips (multiple for several, value / onValueChange), selected / onSelectedChange for a standalone toggle chip, or onRemove for removable tags.

Examples

Default

DocsAPI
Demo.tsxTSX
import { Chip, ChipGroup } from '@var-ui/react';

<ChipGroup multiple value={values} onValueChange={setValues} tone="accent">
  <Chip value="react">React</Chip>
  <Chip value="vue">Vue</Chip>
</ChipGroup>

<Chip onRemove={() => remove('docs')}>Documentation</Chip>

Props

Accessibility

Toggle chips render as buttons with aria-pressed. Remove controls expose an accessible dismiss label.