Skip to main content

Chip

Represents a set of user-supplied keywords that help label, organize, and categorize objects. 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 children
children
HTMLElement

The content of the Chip.

Anchor to graphic
graphic
HTMLElement

The graphic to display in the chip.

Only accepts Icon components.

Examples
<s-chip>Chip</s-chip>

Preview

  • Labeling, organizing, and categorizing objects
  • Highlighting content attributes
  • Enhancing discoverability by identifying items with similar properties

  • subdued: use for secondary or less important information
  • base: use as default color
  • strong: use for important or verified status
  • Text truncates automatically, keep labels short to avoid truncation
  • Chips are static indicators, not interactive or dismissible. For interactive chips, use ClickableChip
  • Add icons to graphic slot to provide visual context
  • Display chips near the content they classify

Chip labels should:

  • Be short and concise to avoid truncation
  • Use accessibilityLabel to describe purpose for screen readers
  • Common status labels: Active, Draft, Published, Verified
  • Common category labels: Product type, Collection, Tag name
Was this page helpful?