recruit/candidate-contact-channels-menu · CandidateContactChannelsMenu
Contact channels menu
Records which channels a candidate was contacted through, with your recency text and a remove action for mistakes.
Install
With your coding agent
Install RecruiterOS/recruit-ui and add a menu that logs which channels a candidate was contacted on.With the shadcn CLI
pnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflowsProps
| Prop | Type | What it does |
|---|---|---|
| optionsrequired | readonly CandidateContactChannelOption[] | The channels, in menu order. |
| touchedrequired | Readonly<Record<string, ReactNode>> | The channels already used, by option id, each with what to show beside it (usually how recently). An id that is absent, null, undefined or false has not been used. |
| onTouchrequired | (id: string) => void | Called when a channel is picked; picking a used channel again refreshes it. |
| onRemoverequired | (id: string) => void | Called from the remove items. |
| compact | boolean | A shorter trigger for tight action rows. |
| labels | Partial<CandidateContactChannelsMenuLabels> |
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.