Components / Questionnaire

Questionnaire

A multi-step flow for single, multiple, freeform and skippable questions.

Question 1 of 2

What should the agent build next?

Choose one direction.

example.component.html
html
<aevko-questionnaire label="Project brief" [items]="questions" [(answers)]="answers" (submitted)="save($event)" />

Installation

npx aevko-ui@latest add questionnaire --yes

Source ownership

Customization

Define ordered questions as typed data, control active/answers for persistence and connect submitted output to application validation and transport.

Edit locallyThe installed template and stylesheet are application code, not a black box.
Theme semanticallyOverride --aevko-* tokens or ordinary classes without !important.

API reference

Property or slotTypeDefaultDescription
itemsreadonly AevkoQuestionnaireItem[]requiredOrdered questions, choices and behavior.
activemodel<number>0Controlled active question index.
answersmodel<Record<string, string | string[]>>{}Controlled answer state.
submittedoutput<answers>eventEmits validated final answers.

Accessibility contract

Accessibility

Included behavior

  • Each question uses a fieldset and legend with native radio or checkbox choices; validation errors announce assertively.

Your responsibility

Write concise legends, make required/skippable status explicit and persist answers outside the component when users may resume later.

Back to all components