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 { PlanQuestions } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
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 |