Passer au contenu principal

CategoryChip

Implemented

One primary event-category filter chip (SEARCH-03). Presentation only: composes the Chip atom, so it inherits the native-button contract, aria-pressed, the 44px tap target and the theme-stable selected colours. Data, i18n and routing live in the consumer.

Categorymolecules
Sourcecomponents/molecules/CategoryChip/CategoryChip.tsx

Catalog fallback

Live MDX preview not available for CategoryChip. Showing component catalog metadata instead.

Props

Preview

CategoryChip

Prop
Type
Required
Default
Description
label
string
Required
—

Visible chip label (localized by the consumer).

selected
boolean
Required
—

Controlled selection; forwarded as aria-pressed.

onSelect
() => void
Required
—

Toggle handler.

size
"sm" | "md"
Optional
"sm"

Chip size token.

disabled
boolean
Optional
false

Disables the chip (e.g. at a selection cap).

className
string
Optional
—

Utility class passthrough.

Quick use:<CategoryChip />

Accessibility

ARIA rolebutton

ARIA

1 rule

WAI-ARIA button pattern

renders a native button with aria-pressed reflecting selected

a11y

1 rule

WCAG 2.5.5

44px minimum height via --ep-tap-min

Design System v4.1.0 | ePassLive