SL
Sam Lindqvist
RevOps Lead at Sample Analytics
Stockholm · Sourced 9 Oct
recruit/candidate-profile-dialog · CandidateProfileDialog
A responsive profile shell: a centred dialog or a side sheet on wide screens and a bottom drawer or sheet on phones, with explicit accessibility slots.
RevOps Lead at Sample Analytics
Stockholm · Sourced 9 Oct
Install RecruiterOS/recruit-ui and add a profile dialog that opens from each candidate card.pnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows| Prop | Type | What it does |
|---|---|---|
| accessibleTitlerequired | ReactNode | |
| accessibleDescription | ReactNode | |
| trigger | ReactElement | |
| open | boolean | |
| defaultOpen | boolean | |
| onOpenChange | (open: boolean) => void | |
| presentation | CandidateProfileDialogPresentation | `dialog` (the default) or `sheet`. |
| height | CandidateProfileDialogHeight | `viewport` (the default) or `content`; the desktop dialog's only. |
| header | ReactNode | The visible head, such as a CandidateProfileHeader. It keeps its natural height and only the body scrolls, also in a drawer or bottom sheet, whose height is capped rather than fixed. A CandidateProfileHeader with `padding="dialog"` starts at the body's left edge. |
| childrenrequired | ReactNode | |
| footer | ReactNode | |
| footerLayout | "auto" | "fill" | |
| showClose | boolean | Disable only when a composed header or footer supplies its own close: the kit's ResponsiveDialogClose in a dialog, its SheetClose in a sheet. |
| closeLabel | string | |
| contentClassName | string | Class for the dialog or sheet surface. A sheet is as wide as the centred dialog by default; widen it here, for example for a two-column profile. |
| bodyClassName | string |
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.