Skip to content
Components / Controls

Filter chip

An active filter with a one-click clear, as a link or a button.

@fabrials/ui
Loading state

Installation

  1. Import the control from @fabrials/ui, after setting the app up.

    TypeScript
    import { FilterChip } from "@fabrials/ui";

API reference

Prop / exportTypeDescription
labelstringThe filter name.
valuestringIts current value.
hrefstringRenders a link that clears the filter.
onRemove() => voidRenders a button that clears the filter.
clearLabelstringAccessible name of the clear action.

Behavior

Pass either href or onRemove. Long values truncate inside the chip. The target is 44px on touch.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.