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;
}
| Name | Signature | Description |
|---|---|---|
labeloptional | label?: ReactNode; | |
descriptionoptional | description?: ReactNode; | |
iconoptional | icon?: ReactNode; | Replaces the step number in the indicator. |
optionaloptional | optional?: boolean | undefined; | Shows the "Optional" text. |
disabledoptional | disabled?: boolean | undefined; | Not selectable ( |
invalidoptional | invalid?: boolean | undefined; | Marks the step as failing validation ( |
statusoptional | status?: StepStatus | undefined; | Overrides the status derived from the Stepper |
childrenoptional | children?: ReactNode; | Replaces the step's content; wins over |
renderoptional | render?: ((props: StepTriggerProps) => ReactElement) | undefined; | Renders the step's trigger element (a |
refoptional | ref?: Ref<HTMLLIElement> | undefined; |