@redrob-labs/ui v1.8.0 · Redrob Group Design System 2026

PlanQuestions

Safeguards · src/components/PlanQuestions/PlanQuestions.tsx

What Plan asks before it writes: a few questions, each answered with a tap or in your own words.

The options are buttons with aria-pressed, so a single tap answers, and the hint beside the submit button says a reply in the person's own words works too - the options are a shortcut, never a form to complete. Once answered it folds to a single line, so the thread reads as a conversation rather than a stack of forms.

Import

import { PlanQuestions } from '@redrob-labs/ui';

Rendered

The design system's own preview case, run against this package's build. The parity gate compares this rendering to the reference bundle's.

Props

PropTypeNotes
questions required PlanQuestion[]
value PlanAnswers
defaultValue PlanAnswers
onChange (value: PlanAnswers) => void
onSubmit (value: PlanAnswers) => void
done boolean Folds to one line once answered.
summary React.ReactNode
submitLabel string
hint React.ReactNode
anyLabel string
label string
className string

Exported types

PlanQuestion, PlanAnswers