Questionnaire
Multi-step form and survey flow with progress tracking.
Generado a partir del código fuente público del paquete.
API
Navigationcomponente
Navigation(props: QuestionnaireNavigationProps): Element
Propiedades
class?string
hijos: Element
NextButtoncomponente
NextButton(props: QuestionnaireNextButtonProps): Element
Propiedades
class?stringvalidate?() => boolean— Optional validation function. Return true to allow advance.
hijos: Element
PrevButtoncomponente
PrevButton(props: QuestionnairePrevButtonProps): Element
Propiedades
class?string
hijos: Element
Progresscomponente
Progress(props: QuestionnaireProgressProps): Element
Propiedades
class?string
hijos: Element
QuestionnaireNavigationPropsinterfaz
Propiedades
class?string
hijos: Element
QuestionnaireNextButtonPropsinterfaz
Propiedades
class?stringvalidate?() => boolean— Optional validation function. Return true to allow advance.
hijos: Element
QuestionnairePrevButtonPropsinterfaz
Propiedades
class?string
hijos: Element
QuestionnaireProgressPropsinterfaz
Propiedades
class?string
hijos: Element
QuestionnaireRootPropsinterfaz
Propiedades
class?stringcurrentStep?Accessor<number>— Controlled current step (0-indexed).defaultStep?number— Default starting step (0-indexed).onComplete?(data: Record<string, unknown>) => void— Called when the questionnaire is submitted on the last step.onStepChange?(step: number) => void— Called when step changes.stepsnumber— Total number of steps.
hijos: Element
QuestionnaireStepContentPropsinterfaz
Propiedades
class?string
hijos: Element
QuestionnaireStepPropsinterfaz
Propiedades
indexnumber— The step index this content belongs to (0-indexed).
hijos: Element
QuestionnaireStepTitlePropsinterfaz
Propiedades
class?string
hijos: Element
QuestionnaireSubmitPropsinterfaz
Propiedades
class?string
hijos: Element
Rootcomponente
Root(props: QuestionnaireRootProps): Element
Propiedades
class?stringcurrentStep?Accessor<number>— Controlled current step (0-indexed).defaultStep?number— Default starting step (0-indexed).onComplete?(data: Record<string, unknown>) => void— Called when the questionnaire is submitted on the last step.onStepChange?(step: number) => void— Called when step changes.stepsnumber— Total number of steps.
hijos: Element
Stepcomponente
Step(props: QuestionnaireStepProps): Element
Propiedades
indexnumber— The step index this content belongs to (0-indexed).
hijos: Element
StepContentcomponente
StepContent(props: QuestionnaireStepContentProps): Element
Propiedades
class?string
hijos: Element
StepTitlecomponente
StepTitle(props: QuestionnaireStepTitleProps): Element
Propiedades
class?string
hijos: Element
Submitcomponente
Submit(props: QuestionnaireSubmitProps): Element
Propiedades
class?string
hijos: Element