@trussworks/react-uswds
Version:
React USWDS 3 component library
23 lines (22 loc) • 870 B
TypeScript
import { default as React, JSX } from 'react';
import { StepIndicatorStepProps } from '../StepIndicatorStep/StepIndicatorStep';
import { HeadingLevel } from '../../../types/headingLevel';
export type StepStatusText = {
complete: string;
incomplete: string;
};
export type StepIndicatorProps = {
showLabels?: boolean;
counters?: 'none' | 'default' | 'small';
centered?: boolean;
children: React.ReactElement<StepIndicatorStepProps>[];
className?: string;
divProps?: JSX.IntrinsicElements['div'];
listProps?: JSX.IntrinsicElements['ol'];
headingProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
headingLevel: HeadingLevel;
stepText?: string;
ofText?: string;
statusText?: StepStatusText;
};
export declare const StepIndicator: (props: StepIndicatorProps) => JSX.Element;