feat: dyamic stepper form forgot password

This commit is contained in:
egagofur
2025-03-30 22:41:06 +07:00
parent b62c762cf9
commit d58ad58ef8
9 changed files with 470 additions and 60 deletions
@@ -0,0 +1,61 @@
import { Meta, StoryObj } from '@storybook/react';
import { Stepper } from './Stepper';
const meta: Meta<typeof Stepper> = {
title: 'Components/Stepper',
component: Stepper,
argTypes: {
currentStep: {
control: { type: 'number', min: 0 },
description: 'Current step number',
},
totalSteps: {
control: { type: 'number', min: 1 },
description: 'Total number of steps',
},
className: {
control: 'text',
description: 'Custom CSS class',
},
},
parameters: {
docs: {
description: {
component: 'A simple stepper component showing progress through steps',
},
},
},
};
export default meta;
type Story = StoryObj<typeof Stepper>;
export const Default: Story = {
args: {
currentStep: 1,
totalSteps: 3,
},
};
export const MiddleStep: Story = {
args: {
currentStep: 2,
totalSteps: 4,
},
};
export const LastStep: Story = {
args: {
currentStep: 3,
totalSteps: 3,
},
};
export const WithCustomClass: Story = {
args: {
currentStep: 1,
totalSteps: 5,
className: 'custom-class',
},
};