Choice Interaction
Choice interactions model single-choice or multiple-choice questions with a prompt and a list of selectable options.
Install
pnpm add @qti-editor/interaction-choiceThis package integrates with @qti-components/choice-interaction through the shared qti-components ecosystem.
What it does
- Inserts a
qti-choice-interactionnode with a prompt and placeholder choices. - Supports editing choice text directly in the editor.
- Supports single- and multiple-response authoring through interaction attributes.
- Works with conversion flows that turn selected text blocks into choice structures.