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.

Anchor to accessibilityLabel
accessibilityLabel
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.

Anchor to color
color
Default: 'base'

Modify the color to be more or less intense.

Anchor to command
command
'--auto' | '--show' | '--hide' | '--toggle'
Default: '--auto'

Sets the action the command should take when this clickable is activated.

See the documentation of particular components for the actions they support.

  • --auto: a default action for the target component.
  • --show: shows the target component.
  • --hide: hides the target component.
  • --toggle: toggles the target component.
Anchor to commandFor
commandFor
string

Sets the element the commandFor should act on when this clickable is activated.

Anchor to disabled
disabled
boolean
Default: false

Disables the chip, disallowing any interaction.

Anchor to hidden
hidden
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.
  • If a commandFor is set, the command will be executed instead of the navigation.
Anchor to interestFor
interestFor
string

Sets the element the interestFor should act on when this clickable is activated.

Anchor to removable
removable
boolean
Default: false

Whether the chip is removable.

Learn more about registering events.

Anchor to afterhide
afterhide
<typeof tagName> | null
Anchor to click
click
<typeof tagName> | null
Anchor to remove
remove
<typeof tagName> | null

Anchor to children
children
HTMLElement

The content of the clickable chip.

Anchor to graphic
graphic
HTMLElement

The graphic to display in the clickable chip.

Only accepts Icon components.

Examples
<s-clickable-chip>Clickable chip</s-clickable-chip>

Preview

  • Creating interactive filters or tags that can be clicked or removed
  • Navigating to related content when configured as a link
  • Allowing merchants to dismiss or remove applied filters or selections

  • Use for interactive chips that merchants can click or dismiss
  • Use Chip component instead for static, non-interactive indicators
  • Keep labels short to avoid truncation
  • Use color variants to indicate importance (subdued, base, strong)
  • Add icons to provide visual context
Was this page helpful?