A wizard component for solid-js.
npm install @digichanges/solid-wizardThe solid-wizard library provides a collection of ready-to-use components.
Is so easy to use the wizard, you can do this in just some simple steps:
If you are using npm:
npm i @digichanges/solid-wizard
Alternatively, for pnpm users:
pnpm install @digichanges/solid-wizard
Import the solid-wizard components and the ones you want to display in the wizard:
``tsx`
import { StepBar, StepsWrapper, Wizard, WizardButton, WizardFooter, WizardHeader } from "@digichanges/solid-wizard";
import YourStepOne from "./components/YourStepOne/YourStepOne.tsx";
import YourStepTwo from "./components/YourStepTwo/YourStepTwo.tsx";
Then, use the components like this:
`tsx``
| Name | Function | Required | Type |
|----------|------------------------------------------------------------------------------|----------|-------------|
| children | The components that are nested inside the Wizard component. | ✅ | [JSX.FunctionElement] |
| Name | Function | Required | Type |
|----------|------------------------------------------------------------------------------|----------|-------------|
| children | The components that are nested inside the WizardHeader component. | ✅ | [JSX.FunctionElement] |
| Name | Function | Required | Type |
|----------|----------------------------------------------------------------------------------|----------|-------------|
| fallback | The fallback component is needed to display something when some step is missing. | ✅ | JSX.Element |
| children | The components that you want to display in the wizard. | ✅ | [JSX.FunctionElement] |
| Name | Function | Required | Type |
|----------|-------------------------------------------------------------------|----------|-------------|
| children | The components that are nested inside the WizardFooter component. | ✅ | [JSX.FunctionElement] |
| Name | Function | Required | Type |
|---------------------|------------------------------------------------------------------------------------------------|---------|---------|
| children | The text that you want the button to display. | ❌ | string |
| next | A boolean that checks if the button should take the user to the next Step or the previous one. | ✅ | boolean |
| buttonStyle | Here you can add a custom class to style the button. | ❌ | string |
| disabledButtonStyle | Here you can add a custom class to style the button when it is disabled. | ❌ | string |
If you want you can change all the CSS properties by changing the styled CSS classes that control the component.
