Theme Playground

Commerce

FilterChip

Toggle-style chip for selectable and removable active filters.

Best for

faceted navigationactive filter summariescompact filter bars

Import

import { FilterChip } from "@enadhq/enad-react-sdk/client/storefront"

When to use it

Use FilterChip when filters need to feel lightweight and easy to remove. It works both as a selectable facet control and as an active-filter summary row after selections have already been made.

For larger grouped filters with counts, options, and several input types, use FilterPanel instead.

Composition notes

onClick handles the main toggle behavior. Add onRemove when the active chip should also expose a dedicated remove affordance.

Keep labels short. Chips lose clarity quickly when they start carrying long values or stacked metadata.

Behavior and theming guidance

The active state should be obvious at a glance. If chips are serving as an active-filter summary, place them close to the results context so the relationship stays clear.

Use a consistent chip style across one results surface. Mixing too many chip weights makes the filtering UI harder to scan.

classNames exposes stable semantic hooks for the chip root and remove icon. Use className for the overall chip shell and classNames.icon when a brand needs to tune the remove affordance without relying on raw svg selectors.

Examples

Live examples you can edit directly in the sandbox.

1 example

Faceted filter bar

Use chips as lightweight toggles when visitors need to turn individual facets on and off quickly.

Slots

rooticon

Component Sets

Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.

Props

PropTypeDefaultDescription
labelstring
Text label displayed inside the chip; use children as an alternative
activeboolean
No description yet.
onClick() => void
No description yet.
onRemovestring
Callback fired when the user removes the chip while it is active
classNamesPartial<Record<FilterChipSlot, string>>
No description yet.
Slot keys
rooticon
classNamestring
No description yet.