2.2.6 • Published 4 years ago

@comparaonline/ui-wizard-form v2.2.6

Weekly downloads
124
License
-
Repository
-
Last release
4 years ago

@comparaonline/ui-wizard-form

This is the Form component that contains every input. It uses the react-final-form(RFF) Form component to handle value's state.

Installation

yarn add @comparaonline/ui-wizard-form

Usage

WizardForm

This component receives some mandatory props in order to initialize the react-final-form(RFF) Form component

  1. formProps: These props are passed directly to the RFF's Form component, so if you need to pass something directly to the component, this is the way.

  2. next, previous, isLastStep, isFirstStep: These functions allows to the component to correctly render navigation buttons and loading messages.

  3. currentStep: the step to render.

  4. stepId: A possible value to try to move that step, intended to be used in conjunction with router.

  5. router: a method that can be used to modify the routes, if passed must implement the required interface

Example

import { WizardForm } from '@comparaonline/ui-wizard-form';

<WizardForm
  formProps={{ onSubmit }}
  currentStep={{ id: '1' }}
  next={navigationFunction}
  previous={navigationFunction}
  isLastStep={booleanFunction}
  isFirstStep={booleanFunction}
  isLoading={false}
  stepId="2"
  router={
    push: (stepId: string) => void,
    replace: (stepId: string) => void
  }
/>

WizardFormLayout Components

Use them as containers of different WizardForm content.

import { WizardFormLayout } from '@comparaonline/ui-wizard-form';

<WizardFormLayout.Actions>
  <Button>Continue</Button>
  <Button>Skip</Button>
</WizardFormLayout.Actions>;
2.2.6

4 years ago

2.2.2

4 years ago

2.1.2-alpha.0

4 years ago

2.0.0

4 years ago

1.2.4

4 years ago

1.1.16

4 years ago

1.1.17

4 years ago

1.0.27

5 years ago

1.0.25

5 years ago

1.0.23

5 years ago

1.0.10-alpha.1

5 years ago

1.0.0

5 years ago

0.8.9-alpha.132

5 years ago

0.8.7-next.87

5 years ago

0.9.0-alpha.87

5 years ago

0.9.0-alpha.86

5 years ago

0.9.0-alpha.85

5 years ago

0.9.0-alpha.81

5 years ago

0.9.0-alpha.79

5 years ago

0.8.8

5 years ago

0.8.3

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.14

5 years ago

0.7.14-alpha.1

5 years ago

0.7.4-alpha.31

5 years ago

0.7.10

5 years ago

0.7.8

5 years ago

0.7.0

5 years ago

0.6.19

5 years ago

0.7.0-alpha.8

5 years ago

0.7.0-alpha.7

5 years ago

0.7.0-alpha.6

5 years ago

0.7.0-alpha.5

5 years ago

0.7.0-alpha.4

5 years ago

0.7.0-alpha.3

5 years ago

0.7.0-alpha.2

5 years ago

0.7.0-alpha.1

5 years ago

0.6.17-alpha.1

5 years ago

0.6.16

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.36-alpha.0

5 years ago

0.0.35-alpha.0

5 years ago

0.0.34-alpha.0

5 years ago

0.0.33-alpha.0

5 years ago

0.0.32-alpha.0

5 years ago

0.0.31-alpha.0

5 years ago

0.0.30-alpha.0

5 years ago

0.0.29-alpha.0

5 years ago

0.0.28-alpha.0

5 years ago

0.0.27-alpha.0

5 years ago

0.0.26-alpha.0

5 years ago

0.0.25-alpha.0

5 years ago

0.0.24-alpha.0

5 years ago

0.0.23-alpha.0

5 years ago

0.0.22-alpha.0

5 years ago

0.0.21-alpha.0

5 years ago

0.0.20-alpha.0

5 years ago

0.0.19-alpha.0

5 years ago

0.0.18-alpha.0

5 years ago

0.0.17-alpha.0

5 years ago

0.0.16-alpha.0

5 years ago

0.0.15-alpha.0

5 years ago

0.0.14-alpha.0

5 years ago

0.0.13-alpha.0

5 years ago

0.0.12-alpha.0

5 years ago

0.0.11-alpha.0

5 years ago

0.0.10-alpha.0

5 years ago

0.0.9-alpha.0

5 years ago

0.0.8-alpha.0

5 years ago

0.0.7-alpha.0

5 years ago

0.0.6-alpha.0

5 years ago

0.0.5-alpha.0

5 years ago

0.0.4-alpha.0

5 years ago

0.0.3-alpha.0

5 years ago

0.0.2-alpha.0

5 years ago