Skip to content

Choice Interaction

Choice interactions model single-choice or multiple-choice questions with a prompt and a list of selectable options.

Install

Terminal window
pnpm add @qti-editor/interaction-choice

This package integrates with @qti-components/choice-interaction through the shared qti-components ecosystem.

What it does

  • Inserts a qti-choice-interaction node 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.