/// /** * @classdesc * * * * It provides wizard workflow where user can go through a couple of steps. * Stepper makes sense when you use it along with {@link Step} component. * * It receives all the same props as {@link Box} - {@link BoxProps}. * * ### Usage * * ```javascript * import { Stepper, StepperProps } from '@adminjs/design-system' * ``` * * @component * @subcategory Molecules * @hideconstructor * @see {@link https://storybook.adminjs.co/?path=/story/designsystem-molecules-stepper--clickable-steps Storybook} * @example Clickable steps * const { useState } = React * const steps = [{ * number: 1, label: "Do this first", * }, { * number: 2, label: "Don't forget this", * }, { * number: 3, label: "And finally this", * }] * const ComponentWithStepper = () => { * const [currentStep, setCurrentStep] = useState(1) * return ( * * * {steps.map(step => ( * step.number} * onClick={setCurrentStep} * number={step.number} * > * {step.label} * * ))} * * * ) * } * * return () * * @example Steps with bottom navigation * const { useState } = React * const steps = [{ * number: 1, label: "Do this first", * }, { * number: 2, label: "Don't forget this", * }, { * number: 3, label: "And finally this", * }] * const ComponentWithStepper = () => { * const [currentStep, setCurrentStep] = useState(1) * return ( * * * {steps.map(step => ( * step.number} * number={step.number} * > * {step.label} * * ))} * * * * * * * ) * } * * return () * * @section design-system */ declare const Stepper: import("styled-components").StyledComponent<"section", import("styled-components").DefaultTheme, { children?: import("react").ReactNode; } & import("styled-system").BorderProps>, import("csstype").Property.Border> & import("styled-system").BorderRadiusProps>, string | number | symbol> & Omit>, string | number | symbol>, "color"> & { color?: string | undefined; } & import("styled-system").LayoutProps>> & Omit>>, "flex"> & import("styled-system").PositionProps>> & import("styled-system").ShadowProps>> & import("styled-system").SpaceProps>, string | number | symbol> & { flex?: boolean | import("styled-system").ResponsiveValue, Required>> | undefined; variant?: "grey" | "transparent" | "white" | "card" | "container" | undefined; animate?: boolean | undefined; className?: string | undefined; }, never>; export { Stepper }; export default Stepper;