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 agentInstall RecruiterOS/recruit-ui and add filter chips that narrow my network view to one kind of change.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
valuerequiredTValue | nullThe chosen option, or null for the unfiltered chip.
onChangerequired(value: TValue | null) => voidCalled with an option's value, or null from the unfiltered chip.
allLabelrequiredReactNodeThe first chip, which clears the filter, such as "Everyone".
optionsrequiredreadonly CandidateFilterChipOption<TValue>[]
contextReactNodeContent before the chips, such as a badge naming where the list came from.
actionReactNodeContent 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.