Skip to main content

ClickableChip

Interactive button used to categorize or highlight content attributes. They are often displayed near the content they classify, enhancing discoverability by allowing users to identify items with similar properties.

string

A label that describes the purpose or contents of the Chip. It will be read to users using assistive technologies such as screen readers.

boolean
Default: false

Disables the chip, disallowing any interaction.

boolean
Default: false

Determines whether the chip is hidden.

If this property is being set on each framework render (as in 'controlled' usage), and the chip is removable, ensure you update app state for this property when the remove event fires.

If the chip is not removable, it can still be hidden by setting this property.

string

The URL to link to.

  • If set, it will navigate to the location specified by href after executing the click event.
string

A unique identifier for the element.

boolean
Default: false

Whether the chip is removable.

Was this section helpful?

Learn more about registering events.

<typeof tagName>

Event handler when the chip has fully hidden.

The hidden property will be true when this event fires.

<typeof tagName>

Event handler when the chip is clicked.

<typeof tagName>

Event handler when the chip is removed.

Was this section helpful?

Learn more about component slots.

HTMLElement

The graphic to display inside of the chip.

Only s-icon element and its type attribute are supported.

Was this section helpful?

Code

<s-clickable-chip removable>Shipping insurance</s-clickable-chip>

Preview