Skip to content

Chip

Chip(__namedParameters): ReactElement

Defined in: react/components/feedback/chip.tsx:36

A small inline token — a tag, mention, file reference, or attachment. fill paints a solid colour block (terminal reverse video, so the text always contrasts), bracket wraps the label in [ ], dim is muted text. Add an icon, make it clickable with onClick, or removable with onRemove (a trailing ×).

<Chip icon="📎" onRemove={() => drop(id)}>config.json</Chip>
<Chip variant="bracket" color="$success">passed</Chip>

ChipProps

ReactElement