UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

25 lines (24 loc) 849 B
import React from "react"; import type { ReactNode } from "react"; export type StepperProps = { className?: string; currentStep: number; stepCount: number; title: ReactNode; nextTitle?: ReactNode; classes?: Partial<Record<"root" | "title" | "state" | "steps" | "details", string>>; }; /** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-stepper> */ export declare const Stepper: React.MemoExoticComponent<React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>>; declare const addStepperTranslations: (params: { lang: string; messages: Partial<{ progress: (p: { currentStep: number; stepCount: number; }) => string; "next step": string; }>; }) => void; export { addStepperTranslations }; export default Stepper;