2.0.1 • Published 8 months ago

@digichanges/solid-wizard v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Solid Wizard

The solid-wizard library provides a collection of ready-to-use components.

Get started

Is so easy to use the wizard, you can do this in just some simple steps:

Installation

If you are using npm:

npm i @digichanges/solid-wizard

Alternatively, for pnpm users:

pnpm install @digichanges/solid-wizard

Create the parent component.

Import the solid-wizard components and the ones you want to display in the wizard:

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:

<Wizard>
   <WizardHeader>
     <StepBar /> 
     <StepsWrapper>
       <YourStepOne />
       <YourStepTwo />
     </StepsWrapper>
   </WizardHeader>
   <WizardFooter>
       <WizardButton/>
       <WizardButton />
   </WizardFooter>
</Wizard>

Props and children

Wizard

NameFunctionRequiredType
childrenThe components that are nested inside the Wizard component.JSX.FunctionElement

WizardHeader

NameFunctionRequiredType
childrenThe components that are nested inside the WizardHeader component.JSX.FunctionElement

StepsWrapper

NameFunctionRequiredType
fallbackThe fallback component is needed to display something when some step is missing.JSX.Element
childrenThe components that you want to display in the wizard.JSX.FunctionElement

WizardFooter

NameFunctionRequiredType
childrenThe components that are nested inside the WizardFooter component.JSX.FunctionElement

WizardButton

NameFunctionRequiredType
childrenThe text that you want the button to display.string
nextA boolean that checks if the button should take the user to the next Step or the previous one.boolean
buttonStyleHere you can add a custom class to style the button.string
disabledButtonStyleHere you can add a custom class to style the button when it is disabled.string

Custom styles for StepBar

If you want you can change all the CSS properties by changing the styled CSS classes that control the component.

npm.io

1.1.1

9 months ago

1.1.0

9 months ago

2.0.1

8 months ago

1.1.3

9 months ago

2.0.0

8 months ago

1.1.2

9 months ago

1.0.1

1 year ago

1.0.0

1 year ago