New: Kith open-sources its ATS.Read why
Skip to Content

Decision buttons

Yes and No as equal, neutral buttons that start your own decision flow, such as asking why.

What it shows

Yes and No that start your own decision flow.

Props

PropTypeWhat it does
onChoose (required)(decision: CandidateDecisionChoice) => voidCalled with the button a person pressed. Nothing is recorded yet: the host usually opens its own sheet or dialog to ask why, then saves.
size"sm" | "default"
stretchbooleanShare the available width between the two buttons, as in an action bar.
disabledbooleanHolds both buttons, such as while the page they sit on is loading someone else.
labelsPartial<CandidateDecisionButtonsLabels>
childrenReactNodeRendered inside the group after the buttons, usually the host's reason sheet. Events that bubble out of its portal then stop here with the buttons' own, instead of reaching a clickable card.

Data it needs

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.

Copy to your agent

Copy to your agent
Install RecruiterOS/recruit-ui and add yes and no buttons that ask why before a decision is saved.