recruit/candidate-decision-reason-dialog · CandidateDecisionReasonDialog

Decision reason dialog

Asks why before a decision on a candidate is recorded, with one-tap suggestions to start the reason.

Sam Lindqvist is waiting for a decision.

Install

With your coding agentInstall RecruiterOS/recruit-ui and add a dialog that asks for a reason before a candidate is rejected.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
openrequiredboolean
titlerequiredReactNodeNames the decision and who it is about, such as "Reject: Mei Tanaka", or "Reject 12 candidates" for a decision on several people at once.
suggestionsreadonly string[]One-tap reasons, already worded. Tapping one adds it to the reason.
placeholderrequiredstring
confirmLabelrequiredReactNode
confirmTone"default" | "destructive"`destructive` for a rejection, `default` to move forward.
reasonOptionalbooleanLets the decision be confirmed with no reason, for a quick decision where a reason helps but mustn't slow it down, such as one on several people at once. The reason is required without it.
onSubmitrequired(reason: string) => Promise<void>Called with the trimmed reason, which is an empty string when `reasonOptional` let the person confirm without one. The confirm button shows a spinner and the dialog's buttons stay disabled until it settles; the host closes the dialog once the decision is saved.
onCloserequired() => voidCalled from Cancel, Escape and the close button.
labelsPartial<CandidateDecisionReasonDialogLabels>
idstringThe reason field's id. A generated one is used when omitted.

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.