Interactive testing environment for react-shared components
Current: Default
Dynamic form builder with validation, custom questions, and address collection
Customize the form properties and see the changes in real-time
Valid: ❌
Data: None
Different question types supported by the form
showBaseboolean - Show name and email fields (default: true)
showMessageboolean - Show optional message field (default: false)
showAddressboolean - Show address fields (default: false)
questionsQuestion[] - Array of custom questions to display
disabledboolean - Disable all form inputs (default: false)
cachedQuestionAnswersRecord<string, any> - Pre-filled answers
autofillQuestionAnswersRecord<string, any> - Autofill values
onSetFanDetails(details: any) => void - Callback when form data changes
onFormIsValid(valid: boolean) => void - Callback when validation state changes
onSetAnswers(answers: any[]) => void - Callback when answers change
onSetNote(note: string | undefined) => void - Callback when note changes
type'text' | 'dropdown' | 'radio' | 'checkbox' | 'phone' - Question input type
contentstring - Question text/label
requiredboolean - Whether answer is required
enabledboolean - Whether question is enabled (for phone type)
options{ value: string; name?: string }[] - Options for dropdown, radio, checkbox
validateForm() => FormIssue[] - Validates form and returns array of issues