On this page

Questionnaire

When to use Questionnaire, when to use something else, and tokens.

Draft. Ported from the shadcn-vue Questionnaire and restyled with Beehexa tokens. Not yet approved; the API may still change.

A form that asks one question at a time, with keyboard shortcuts for each answer.

When to use

  • Onboarding or a survey with several questions, where one question at a time keeps people focused.

When not to use

  • A form people fill in and review together. Use a normal Form.

Tokens

Part Tokens
Layout space.stack between parts, color.text
Choices radius.control, color.border.bold edge; chosen color.background.selected with a second cue
Key caps kbd.height, font.code.default
Progress the Progress bar tokens
Focus the Button focus ring (border.width.focused, color.border.focus, state.focus.offset)