recruit/candidate-outreach-composer · CandidateOutreachComposer

Outreach composer

Drafts a first message to a person: a channel, its house style, and an editable draft to copy.

Outreach

Install

With your coding agentInstall RecruiterOS/recruit-ui and add an outreach composer that drafts a first message per channel.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
channelsrequiredreadonly CandidateOutreachChannel<TValue>[]The channels, in order, as buttons in the header.
channelrequiredTValue
onChannelChangerequired(value: TValue) => void
guidancerequiredCandidateOutreachGuidance
draftCandidateOutreachDraft | nullThe draft for the current channel. Without one, the composer offers to write it.
draftingbooleanShows the draft's progress and disables Draft and Redo.
errorReactNodeWhy the last draft failed.
copiedbooleanShows Copied, with a check, in place of Copy.
onDraftrequired() => voidWrites a draft, or a fresh one.
onCopyrequired() => voidCopies the draft; the host decides what goes on the clipboard.
onEditDraftrequired(message: string) => void
labelsPartial<CandidateOutreachComposerLabels>
border"none" | "top" | "bottom"The kit PanelSection's divider.

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.