structyl

The full prop reference for the Chip component. A compact label with optional delete action.

Import

tsx
import { Chip } from '@structyl/styled';

Props

Chip

Compact label with optional icon/avatar/delete action.

PropTypeDefault
label#React.ReactNode

Label content.

variant#'filled' | 'outlined' | 'default' | 'secondary' | 'outline'

Chip treatment.

'filled'
color#'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'

Tokenized chip color.

'default'
size#'small' | 'medium'

Chip height.

'medium'
icon | avatar | deleteIcon#React.ReactNode

Optional leading or delete visuals.

onDelete#() => void

Shows delete button and handles removal.

clickable#boolean

Adds button semantics and focusability.

false
disabled#boolean

Disable chip interactions.

false
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library