Appearance
Pill
SCAPill is a toggleable chip, or (type="selectable") a filter trigger that shows a caret and, once it has a value, a clear (×) icon. Icon names are typed (IconName); see Icons.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Text. Required. |
type | 'boolean' | 'selectable' | 'boolean' | boolean shows a check mark while selected; selectable shows caret-down, or x when value is set. |
selected | boolean | false | Selected look. |
value | string | — | Shown instead of label when set. |
prefix | string | — | Text before the label, e.g. Status:. |
icon | IconName | — | Leading icon. |
avatar | boolean | false | Show a small avatar before the label. |
appearance | 'default' | 'inverted' | 'default' | inverted is for dark backgrounds. |
disabled | boolean | false | Disabled look. |
Emits
| Event | Payload | When |
|---|---|---|
click | — | The pill is clicked. The pill does not toggle itself: update selected in the handler. |