# StepperProps (@salmonui/navigation/stepper)

> The StepperProps interface of @salmonui/navigation/stepper.

Canonical: https://salmonui.dev/docs/reference/navigation/stepper/StepperProps

```ts
import type { StepperProps } from '@salmonui/navigation/stepper';
```

Entry index: https://salmonui.dev/docs/reference/navigation/stepper (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/navigation/stepper.md).

## Reference

Kind: interface

```ts
interface StepperProps extends Omit<OlHTMLAttributes<HTMLOListElement>, 'defaultValue' | 'onChange' | 'type'> {
    children?: ReactNode;
    value?: number | undefined;
    defaultValue?: number | undefined;
    onValueChange?: ((value: number, event: StepperChangeEvent) => void) | undefined;
    onBeforeValueChange?: ((event: StepperBeforeChangeEvent) => void) | undefined;
    onStepClick?: ((event: StepClickEvent) => void) | undefined;
    linear?: boolean | undefined;
    readOnly?: boolean | undefined;
    orientation?: 'horizontal' | 'vertical' | undefined;
    labelPlacement?: 'top' | 'bottom' | 'start' | 'end' | undefined;
    renderStep?: ((context: StepRenderContext) => ReactNode) | undefined;
    localeText?: Partial<StepperLocaleText> | undefined;
    ref?: Ref<HTMLOListElement> | undefined;
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `children?: ReactNode;` | optional | `Step` children (direct children or arrays of them). |
| `value` | `value?: number \| undefined;` | optional | Active step, 0-based. |
| `defaultValue` | `defaultValue?: number \| undefined;` | optional |  |
| `onValueChange` | `onValueChange?: ((value: number, event: StepperChangeEvent) => void) \| undefined;` | optional |  |
| `onBeforeValueChange` | `onBeforeValueChange?: ((event: StepperBeforeChangeEvent) => void) \| undefined;` | optional | Runs before a change; `event.preventDefault()` cancels it. |
| `onStepClick` | `onStepClick?: ((event: StepClickEvent) => void) \| undefined;` | optional | A selectable step was clicked or activated with Enter / Space. |
| `linear` | `linear?: boolean \| undefined;` | optional | Only earlier steps and the next one are selectable. |
| `readOnly` | `readOnly?: boolean \| undefined;` | optional | Steps are an indicator only: no buttons, no selection. |
| `orientation` | `orientation?: 'horizontal' \| 'vertical' \| undefined;` | optional | Default `'horizontal'`. |
| `labelPlacement` | `labelPlacement?: 'top' \| 'bottom' \| 'start' \| 'end' \| undefined;` | optional | Label side relative to the indicator; logical. Default `'bottom'` horizontally, `'end'` vertically. |
| `renderStep` | `renderStep?: ((context: StepRenderContext) => ReactNode) \| undefined;` | optional | Replaces the default content of every step. |
| `localeText` | `localeText?: Partial<StepperLocaleText> \| undefined;` | optional |  |
| `ref` | `ref?: Ref<HTMLOListElement> \| undefined;` | optional |  |
