Skip to content

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 ​

PropTypeDefaultDescription
labelstring—Text. Required.
type'boolean' | 'selectable''boolean'boolean shows a check mark while selected; selectable shows caret-down, or x when value is set.
selectedbooleanfalseSelected look.
valuestring—Shown instead of label when set.
prefixstring—Text before the label, e.g. Status:.
iconIconName—Leading icon.
avatarbooleanfalseShow a small avatar before the label.
appearance'default' | 'inverted''default'inverted is for dark backgrounds.
disabledbooleanfalseDisabled look.

Emits ​

EventPayloadWhen
click—The pill is clicked. The pill does not toggle itself: update selected in the handler.

Avatar ​

Icon ​

Prefix ​

Inverted ​

Icons ​