Enter continues to the next question
Three questions in one card
A card that asks several multiple-choice questions one at a time and folds into a summary.
Pick an option or type your own in the last row, then Continue. The arrows move between questions and the counter rolls. After the last answer the card becomes a short summary. Skip leaves every question unanswered.
Options for the assembled component.
questions*Question[]Each has an id, the question and its options. other: false removes the free text row.
answer*AskAnswerundefinedUndefined shows the card, a value shows the summary.
locked*booleanDisables every control.
onAnswer*(answer: AskAnswer) => voidCalled with the choices, or with skipped.
_conversation/beats/ask-beat.tsxHolds the current question and the choices, and swaps the card for the summary.
_conversation/beats/ask-question.tsxOption rows and the free text row for one question.
_conversation/beats/choice-badge.tsxThe letter badge in front of each option.
_conversation/beats/ask-answered.tsxThe folded summary of what was chosen.
_shared/ui/roll.tsxRolling text for the question and counter, and a height that follows the content.
Ported from the agent-builder conversation module.
Enter continues to the next question
Three questions in one card