recruit/candidate-filter-chips · CandidateFilterChips
Filter chips
A row of pressed-state chips that narrows a list of people to one kind.
From this week's update
Showing everyone
Install
With your coding agent
Install RecruiterOS/recruit-ui and add filter chips that narrow my network view to one kind of change.With the shadcn CLI
pnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflowsProps
| Prop | Type | What it does |
|---|---|---|
| valuerequired | TValue | null | The chosen option, or null for the unfiltered chip. |
| onChangerequired | (value: TValue | null) => void | Called with an option's value, or null from the unfiltered chip. |
| allLabelrequired | ReactNode | The first chip, which clears the filter, such as "Everyone". |
| optionsrequired | readonly CandidateFilterChipOption<TValue>[] | |
| context | ReactNode | Content before the chips, such as a badge naming where the list came from. |
| action | ReactNode | Content pushed to the end of the row, such as a related control. |
Data
The component takes plain values and callbacks and keeps no records of its own. Pass it yours, from the Kith data layer or from a backend you already run.