Ask User Questions
Question prompt panel for clarifications, answers, and review decisions.
When To Use
- Use Ask User Questions when you need a reusable molecules pattern instead of rebuilding the structure from primitives.
- Start from the simplest example that fits the task, then add decoration only when it clarifies meaning or hierarchy.
- Review the examples below to understand the tradeoffs between density, emphasis, and behavior.
When Not To Use
- Do not use Ask User Questions just because it already exists in the catalog; choose the pattern that matches the task, not the most decorative option.
- Do not keep layering options onto the pattern when a simpler component or section would be easier to understand and maintain.
Accessibility Notes
- Maintain heading order and region labels so the surrounding layout stays understandable when styles are stripped away.
- Avoid using visual grouping alone to explain hierarchy; expose the structure semantically as well.
- Make sure drag, resize, and reorder interactions have keyboard alternatives when they are part of the core task.
Key Props / API
Props
questions, currentIndex, defaultCurrentIndex, onCurrentIndexChange, answers, defaultAnswers
Default
Clarification questions
Question 1 of 2
Which workflow should we prioritize?
Import review
Theme builder