View as Markdown

API reference: @salmonui/navigation/stepper

StepPropsinterface

import type { StepProps } from '@salmonui/navigation/stepper';
interface StepProps extends Omit<HTMLAttributes<HTMLLIElement>, 'children'> {
    label?: ReactNode;
    description?: ReactNode;
    icon?: ReactNode;
    optional?: boolean | undefined;
    disabled?: boolean | undefined;
    invalid?: boolean | undefined;
    status?: StepStatus | undefined;
    children?: ReactNode;
    render?: ((props: StepTriggerProps) => ReactElement) | undefined;
    ref?: Ref<HTMLLIElement> | undefined;
}
StepProps members (10)
NameSignatureDescription
labeloptionallabel?: ReactNode;
descriptionoptionaldescription?: ReactNode;
iconoptionalicon?: ReactNode;

Replaces the step number in the indicator.

optionaloptionaloptional?: boolean | undefined;

Shows the "Optional" text.

disabledoptionaldisabled?: boolean | undefined;

Not selectable (aria-disabled).

invalidoptionalinvalid?: boolean | undefined;

Marks the step as failing validation (data-invalid, announced).

statusoptionalstatus?: StepStatus | undefined;

Overrides the status derived from the Stepper value.

childrenoptionalchildren?: ReactNode;

Replaces the step's content; wins over renderStep.

renderoptionalrender?: ((props: StepTriggerProps) => ReactElement) | undefined;

Renders the step's trigger element (a <button>, or a <span> when the Stepper is read-only) with the computed props; spread them. Composes a Tooltip around the step without the Stepper importing it.

refoptionalref?: Ref<HTMLLIElement> | undefined;