API Reference
Complete API documentation for every export of react-minimal-survey-builder.
useSurvey
The core React hook. Returns answers, errors, navigation, validation, and submission controls.
SurveyRenderer
Drop-in component that renders a complete survey from a schema with built-in UI, custom components, and render props.
SurveyBuilder
Visual drag-and-drop editor with live preview and JSON editor for creating survey schemas.
Types
Complete TypeScript type reference — SurveySchema, Question, Page, ValidationRule, SurveyOptions, and more.
Core Utilities
Framework-agnostic functions — parseSchema, validateQuestion, evaluateCondition, SurveyStateManager, and helpers.
Entry Points
react-minimal-survey-builderMain entry. Exports useSurvey, SurveyRenderer, QuestionRenderer, and all types.
react-minimal-survey-builder/coreFramework-agnostic core. Exports parseSchema, validateQuestion, evaluateCondition, SurveyStateManager, and helpers.
react-minimal-survey-builder/builderExports SurveyBuilder and QuestionEditor components.