0.0.2 • Published 8 months ago
@licuido-ui/ui_stepper v0.0.2
Stepper
The Stepper component is a customizable React component that allows you to create a step-by-step user interface for guiding users through a process or workflow. It can be used to represent a multi-step form, a progress tracker, or any scenario where sequential navigation is required.
Author
- @author Akila Kalaiyarasan akila@crayond.co
Link
PlayGround
Installation
npm i @licuido-ui/ui_stepperImport component
import { Stepper } from '@licuido-ui/ui_stepper';Usage
<Stepper steps={[]} buttons={[]} />Image

Sample Code
<Stepper
steps={[
{
label: 'akila',
icon: <StepperIcon />,
status: 'completed',
content: 'fefyguyrgf',
color: 'green',
completeBadge: <CheckMark />,
stepperStyle: {
stepWrapStyle: {},
stepActiveStyle: {},
stepInActiveStyle: {},
iconCompletedStyle: {},
iconActiveStyle: {},
iconInActiveStyle: {},
anchorOrigin: {
vertical: 'top',
horizontal: 'right',
},
labelStyle: {},
statusStyle: {},
textAreaStyle: {},
},
},
{
label: 'settings',
icon: <StepperIcon />,
status: 'inprogress',
color: 'green',
},
{
label: 'settings',
icon: <StepperIcon />,
status: 'inprogress',
color: 'green',
},
{
label: 'settings',
icon: <StepperIcon />,
status: 'inprogress',
color: 'green',
},
]}
styles={{
buttonsContainer: {},
btnStyle: { width: '30px' },
rootStyle: {},
contentStyle: {},
}}
buttons={[
{
label: 'Back',
onClick: () => {
console.log('jhchiuhiuhidc');
},
},
{
label: 'Next',
disabled: false,
onClick: () => {
console.log('jhcdc');
},
},
{
label: 'Reset',
disabled: false,
onClick: () => {
console.log('jhcdc');
},
},
]}
activeStep={1}
/>Props
| Name | Description | Default | Control |
|---|---|---|---|
| stepperId | string | string | string |
| steps | StepData[] | [] | RAW {...} 7 keys |
| styles | { buttonsContainer?: SxProps<{}>; btnStyle?: SxProps<{}>; rootStyle?: SxProps<{}>; contentStyle?: SxProps<{}>; stepperParent?: SxProps<{}>; } | { } | RAW {...} 4 keys |
| buttons | ButtonProps[] | [] | RAW {...} 3 keys |
| activeStep | number | 0 | input |
| className | string | - | button |
| sx | SxProps | - | button |
| resetBtn | ButtonProps[] | - | button |
0.0.2
8 months ago