Skip to main content
  1. Docs
  2. Components
  3. Data display

Chip

An interactive tag: one that turns on and off, such as a filter, or a choice already made with a button that removes it.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.4.0
Renders
<span role="checkbox">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

Starred
Kind
Size
filter.tsx
import { Chip } from "@qeetrix/react/experimental";

<Chip defaultChecked>Starred</Chip>

02

On and off

A Chip on its own is a checkbox named by its label: a click or Space turns it on, with the selected tint, a 2px Ember edge and a check.

UnreadMentions

03

One of a set

ChipGroup: one value, so the chips are radios. One Tab stop; the arrow keys move the choice, mirrored in right to left. label names the group and isn't shown.

AllActiveInvitedBlocked

04

Several of a set

multiple: each chip a checkbox, and value the chosen ones.

EngineeringFinanceOperationsPeople
Showing Engineering

05

Removable

onRemove: a static label ending in a remove button, named "Remove Status: Active". Taking the chip away, and moving focus to the next, is yours.

Status: ActiveRole: AdminDepartment: Finance

06

With an icon

icon: a 16px sharp icon before the label. It takes the check's place, so a chosen chip with one is marked by its tint and edge.

StarredUnread

07

Sizes

size: sm for a filter row over a list, md by default, lg at the fields' height. On ChipGroup it sizes every chip.

AllActiveInvited
AllActiveInvited
AllActiveInvited

08

In a narrow column

The chips wrap onto more lines, a small gap apart, and a long label wraps inside its chip: nothing is cut.

Awaiting approval from the finance teamApprovedRejected

09

Disabled

disabled greys a chip; a removable one's remove button with it.

ArchivedOwner: Priya

10

In Hindi

QeetrixProvider's messages: the remove button is "{label} हटाएँ".

स्थिति: सक्रिय
Next — ChipUsage