Component docs
Loading
"use client";
import { Stepper } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly StepperItem[] | — | Items to render. |
defaultValue | string | null | — | Current step id when uncontrolled. |
onValueChange | (value: string) => void | — | Called with the new value (only when it changes). |
orientation | "horizontal" | "vertical" | — | Layout and arrow-key axis. |
value | string | null | — | Current step id (controlled); null for none. |
itemsrequiredreadonly StepperItem[]
Items to render.
defaultValuestring | null
Current step id when uncontrolled.
onValueChange(value: string) => void
Called with the new value (only when it changes).
orientation"horizontal" | "vertical"
Layout and arrow-key axis.
valuestring | null
Current step id (controlled); null for none.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
const items = [
{ id: "account", label: "Account" },
{ id: "plan", label: "Plan" },
];
<Stepper items={items} />