import type { ReactNode } from 'react'; import type { AriaLabelingProps } from '../../core/types/a11y-props.js'; import type { Validity } from '../../core/types/validity.js'; /** * Describes one step in the stepper navigation. * @public */ export interface StepDetails extends Pick { /** * Unique identifier of the step. */ id: string; /** * Step title. A tooltip shows the full title when it is truncated. */ title?: ReactNode; /** * Secondary text shown below the title. A tooltip shows the full text when * it is truncated. */ hint?: ReactNode; /** * Message shown instead of the hint when `validity` is `'invalid'`. Without a * message, the hint stays visible. */ errorMessage?: ReactNode; /** * Marks the step as required. Steps that are not required are labelled * "Optional" in the navigation entry. * @defaultValue false */ required?: boolean; /** * Marks the step as disabled. The step stays focusable and is announced as * disabled to assistive technology, but selecting it does nothing. * @defaultValue false */ disabled?: boolean; /** * Validation state shown on the step indicator. Without a value, or while * `'pending'` or `'aborted'`, the step shows the neutral look of a step that * has not been validated yet. */ validity?: Validity; } //# sourceMappingURL=stepper-types.d.ts.map