KB-271 · STEPFORM/ONE/QUESTION
One Question Step Form
The long ask, asked one question at a time: each prompt gets the whole frame, Enter carries you forward, and the rail keeps the length honest so nobody feels ambushed. A single question in flight, the answer held, the way back always open, and a summary of everything before it is sent.
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/stepform-one-question
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| questions | OneQuestion[] | — | Text or choice prompts; each carries a short rail label. |
| onSubmit | (answers) => void | — | Fired once, on the review stage. |
| summaryTitle / submitLabel / doneTitle / doneCopy | string | — | The last two frames. |