Core¶
The @survey-kit/core package provides the survey engine: renderers, hooks, shared logic and TypeScript types.
What core provides¶
SurveyRendererfor traditional form-based survey pagesChatSurveyRendererfor conversational chat-style surveysLayoutRendererfor composing survey content with layout wrappersuseSurveyfor state, validation, progress and navigation- Shared utility functions for conditional visibility and configuration access
Renderer options¶
- Use
SurveyRendererfor structured, page-based survey flows - Use
ChatSurveyRendererfor mobile-first, conversational journeys - Pair either renderer with the same survey configuration format
useSurvey hook summary¶
useSurvey manages:
- Answer state and persistence
- Validation and completion checks
- Navigation between visible pages, groups and stages
- Progress calculations at page, group, stage and survey levels