hiip/ui

Components / Controls

Filter Chip

A filter chip with a live count and an optional status dot.

Install — needs @hiip registered in components.json

bunx shadcn@latest add @hiip/filter-chip

Or by URL, with the token in the query

bunx shadcn@latest add "https://ui.hiip.ai/r/filter-chip.json?token=$HIIP_REGISTRY_TOKEN"

Both need a token — set one up.

Anatomy

Import from components/ui/hiip-ui/filter-chip.

<FilterChip />

Examples

API Reference

Generated from the source. Props forwarded to the underlying element are not listed.

FilterChip

PropTypeDefault
activerequiredboolean
countrequirednumber
labelrequiredstring
onClickrequired() => void
disabled

Off while the page is busy — the count on this chip is the thing being recomputed, so clicking it mid-flight filters on a number that is about to change.

boolean | undefined
dotstring | undefined
Type
registry:ui
Files written
  • components/ui/hiip-ui/filter-chip.tsx