@trussworks/react-uswds
Version:
React USWDS 3.0 component library
24 lines (23 loc) • 876 B
TypeScript
import { default as React } from 'react';
import { StepIndicatorStepProps } from '../StepIndicatorStep/StepIndicatorStep';
import { HeadingLevel } from '../../../types/headingLevel';
export type StepStatusText = {
complete: string;
incomplete: string;
};
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) => React.ReactElement;
export {};