Toggle
moleculesA muted chip that lights up when pressed; recolour the on tint per use with tone for filters, formatting and behaviour switches.
Conversation filters
pressed with onclick, pill chips per message role, tone set per chip and struck when a role is muted.
2 roles hidden
Shapes, sizes, tones and row sharing
pill rounds the chip; tone recolours the pressed tint; size sm (default), md, lg; grow shares a row equally; shrink={false} keeps intrinsic width.
States
disabled on and off, struck for a muted-but-on filter, sound={false}, and a long label (chips never wrap) truncating in a narrow row.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
pressed | boolean | false | |
pill | boolean | false | |
struck | boolean | false | |
tone | Tone | 'accent' | Colour of the pressed tint. |
size | ControlSize | 'sm' | |
grow | boolean | false | Share a flex row with siblings (flex: 1 1 0). |
shrink | boolean | true | `shrink={false}` keeps the chip at its intrinsic width (flex: none). |
sound | boolean | true | Play UI sounds when enabled globally; false silences this instance. |
children | Snippet | — |