A short set of questions, one per page or all on one form: single and multiple choice, scales and text, required checks and a review page.
Questionnaire paged
Install
npx shadcn add @syncrobotic/questionnaire Also installs: radix-ui, @syncrobotic/cn, @syncrobotic/button, @syncrobotic/checkbox, @syncrobotic/choice-field, @syncrobotic/radio-group, @syncrobotic/textarea
Overview
A short form of questions with choice, scale and text answers, paged or on one page, that checks required answers.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Questionnaire with review
Questionnaire review page
Questionnaire list
Questionnaire feedback
Questionnaire single question
Questionnaire required error
Questionnaire incident
Questionnaire scale only
Questionnaire resume
Questionnaire described options
Questionnaire text required
Usage rules
- Paged for up to about eight questions on a phone; list when people need to see them all.
- Required questions block Next with a message under the question, never a shake.
- review lets people check and edit before sending.
Changelog
- 0.23.12026-11-21A paged form with no questions renders and Next does nothing, instead of throwing. Compiles with noUncheckedIndexedAccess.
- 0.23.02026-11-20Every word it says can be translated without editing the source:
labels(QuestionnaireLabels: the counter, progress, review list, Back, Next, Submit, "Not answered", the required mark…). QuestionField takes them too.submitLabelandrequiredMessagestill work and win. - 0.17.32026-11-19Tracks and quiet shapes use the new --track token, so they read in dark mode (1.5:1 on their surface; they were near invisible). The percentage follows the counter (question 1 of 4 is 25 %).