QuestionnaireContent.Item

Renders the current questionnaire item for paged mode, automatically handling field type selection and conditional logic.

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

Renders the current questionnaire item for paged mode, automatically handling field type selection and conditional logic.

Overview

The QuestionnaireContent.Item component automatically renders the current questionnaire item based on its FHIR type, handles conditional logic evaluation, and provides real-time validation feedback. It serves as the main content renderer for paged questionnaire navigation.

Props

Every prop, with its type and description, is listed in the @ovok/native/questionnaire-response-form API reference.

Features

  • Automatic Field Rendering: Selects appropriate field component based on FHIR item type
  • Conditional Logic: Evaluates enableWhen rules in real-time
  • Validation Integration: Shows required-field indicators. Inline validation text is rendered by Content.Error, not by Content.Item itself.
  • Accessibility boundary: The item forwards host view props; add labels, roles, and announcements around the rendered field where the app requires them
  • Custom Styling: Full control over item container appearance

Last updated on

On this page