BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Questionnaire

Multi-step form and survey flow with progress tracking.

Paquete
@solidiom/questionnaire
Versión
0.6.0
Estado
experimental

Generado a partir del código fuente público del paquete.

API

Navigationcomponente

                        Navigation(props: QuestionnaireNavigationProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

NextButtoncomponente

                        NextButton(props: QuestionnaireNextButtonProps): Element
                      

Propiedades

class?
string
validate?
() => boolean — Optional validation function. Return true to allow advance.

hijos: Element

Ver código fuente

PrevButtoncomponente

                        PrevButton(props: QuestionnairePrevButtonProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

Progresscomponente

                        Progress(props: QuestionnaireProgressProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

QuestionnaireNavigationPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

QuestionnaireNextButtonPropsinterfaz

Propiedades

class?
string
validate?
() => boolean — Optional validation function. Return true to allow advance.

hijos: Element

Ver código fuente

QuestionnairePrevButtonPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

QuestionnaireProgressPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

QuestionnaireRootPropsinterfaz

Propiedades

class?
string
currentStep?
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.
steps
number — Total number of steps.

hijos: Element

Ver código fuente

QuestionnaireStepContentPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

QuestionnaireStepPropsinterfaz

Propiedades

index
number — The step index this content belongs to (0-indexed).

hijos: Element

Ver código fuente

QuestionnaireStepTitlePropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

QuestionnaireSubmitPropsinterfaz

Propiedades

class?
string

hijos: Element

Ver código fuente

Rootcomponente

                        Root(props: QuestionnaireRootProps): Element
                      

Propiedades

class?
string
currentStep?
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.
steps
number — Total number of steps.

hijos: Element

Ver código fuente

Stepcomponente

                        Step(props: QuestionnaireStepProps): Element
                      

Propiedades

index
number — The step index this content belongs to (0-indexed).

hijos: Element

Ver código fuente

StepContentcomponente

                        StepContent(props: QuestionnaireStepContentProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

StepTitlecomponente

                        StepTitle(props: QuestionnaireStepTitleProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

Submitcomponente

                        Submit(props: QuestionnaireSubmitProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente