structyl

Chip

stable

A compact label with optional delete action.

Basic usage

Ready

Examples

Variants

Chips support default, secondary and outline treatments.

DefaultSecondaryOutline

Deletable chip

Pass onDelete to show the dismiss action.

Removable

Variants, colors and slots

Chips now cover MUI-style filled/outlined, colors, sizes, icons and delete actions.

PrimarySuccess*Small

Features

  • Variant styles.
  • Optional delete button.

Installation

bash
pnpm dlx structyl add chip

API Reference

Chip

Compact label with optional icon/avatar/delete action.

PropTypeDefault
labelReact.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 | deleteIconReact.ReactNode

Optional leading or delete visuals.

onDelete() => void

Shows delete button and handles removal.

clickableboolean

Adds button semantics and focusability.

false
disabledboolean

Disable chip interactions.

false
classNamestring

Additional Tailwind classes merged with the component defaults.

Chip | structyl