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
| Prop | Type | What it does |
|---|---|---|
onChoose (required) | (decision: CandidateDecisionChoice) => void | Called 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" | |
stretch | boolean | Share the available width between the two buttons, as in an action bar. |
disabled | boolean | Holds both buttons, such as while the page they sit on is loading someone else. |
labels | Partial<CandidateDecisionButtonsLabels> | |
children | ReactNode | Rendered 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
Install RecruiterOS/recruit-ui and add yes and no buttons that ask why before a decision is saved.