import React, { useState } from "react"; import type { Meta } from "@storybook/react"; import { Stepper as StepperComponent } from "../src/components/stepper"; import { Card, CardContent, CardTitle } from "../src/components/card"; import { Typography } from "../src/components/typography"; export default { title: "Navigation/Stepper", component: StepperComponent, } as Meta; const Component = () => { const [step, setStep] = useState(0); return (
{step === 0 && ( Long step title 1 Sample content )} {step === 1 && ( Step 2 More content )} {step === 2 && ( Step 3 Another content )} {step === 3 && ( Step 4 Even mpre sample content )}
); }; export const Stepper = { render: Component, };