042
Filters tucked into collapsible checkbox groups and echoed above as chips you can pop off one by one, with search, Clear all and full arrow-key control.
akafilter menu·chips
Run this in any project set up for the shadcn CLI. It copies the Facets source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/facets.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Facets } from "@/components/facets";
export default function Page() {
return <Facets />;
}A free React component in the Forms collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Facets source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| groupsrequired | FacetGroup[] | — |
| value | FacetValue | — |
| defaultValue | FacetValue | {} |
| onValueChange | (value: FacetValue) => void | — |
| summary | (value: FacetValue) => ReactNode | — |
| className | string | — |