Matt Montenegro's Backstage

shadcn's Questionnaire component

by shadcn (@shadcn) · · UI/UX

shadcn's Questionnaire component

Question 1 of 3, two options with a short description and a field to write another direction. The component gives shape to the agent's follow-up: a quick choice when it fits, free text when an option is missing.

shadcn's Questionnaire component for step-by-step question flows, such as agents following up. The earlier summary was wrong and was corrected from the text.

Post text

New component: Questionnaire. Use it to build multi-step question flows, like agents asking follow-up questions. Supports single and multiple choice, freeform answers, skippable and conditional steps, controlled and resumable state, custom progress, bring-your-own validation, full keyboard navigation with answer shortcuts, ssr-ready, accessible and composable. Available for Base UI, Radix, React Aria in all styles. Also available as unstyled headless in shadcn/react.

Open the post on X ↗Open in the archive

Similar references