docs/components/input/FilterChip

FilterChip

Toggle chip for filtering.

import { FilterChip } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

Selected

<FilterChip label="Events" selected />

Disabled

<FilterChip label="Events" disabled />

#Props

PropTypeDefaultDescription
label *stringText label displayed in the chip.
selectedbooleanfalseWhether the chip is in selected/active state.
onToggle(selected: boolean) => voidCallback fired when the chip is toggled.
colorstringCustom accent color for the selected state (CSS color value).
iconJSX.ElementIcon element rendered before the label.
disabledbooleanfalseDisable chip interaction.
size'sm' | 'md''md'Size variant.
classstringAdditional CSS classes.
styleJSX.CSSPropertiesInline styles.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-bg-secondary
  • --sk-bg-tertiary
  • --sk-border
  • --sk-duration-fast
  • --sk-filter-chip-accent
  • --sk-font-size-sm
  • --sk-font-size-xs
  • --sk-space-md
  • --sk-space-sm
  • --sk-space-xs
  • --sk-text-on-accent
  • --sk-text-primary
  • --sk-text-secondary