Stepper
Ordered progress steps with native links and readable status.
All components · Theme builder · Implementation source
Live preview
Install
netscript ui:add stepperUsage and examples
The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.
import { useState } from 'preact/hooks';
import { Stepper } from '@app/components/ui/stepper.tsx';
export function Example() {
const [value, setValue] = useState('standard');
const [open, setOpen] = useState(false);
const [notice, report] = useState('');
return (<><div><Stepper steps={[{id:"details",title:"Order details",status:"current"},{id:"confirm",title:"Confirm order",status:"upcoming"}]} /></div><p role="status">{notice}</p></>);
}Props
Generated from native deno doc --json --private over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.
| Owner | Prop | Type | Optional | Description |
|---|---|---|---|---|
StepperProps | steps | [object Object] | No | |
StepperProps | orientation | "horizontal" | "vertical" | Yes | |
StepperProps | description | boolean | Yes | |
StepperProps | connector | boolean | Yes | |
StepperProps | class | string | Yes |
StepperProps extends Omit<JSX.HTMLAttributes<HTMLOListElement>, "class">Keyboard
Presentation component; no component-specific keyboard interactions.
Tokens
Semantic contract roles: border/default, primary/default, primary/fg, radius/badge, text/muted, topbar/rule.
CSS custom properties referenced directly: --ns-border, --ns-border-width, --ns-destructive, --ns-destructive-fg, --ns-destructive-text, --ns-fg, --ns-font-data, --ns-muted-fg, --ns-primary, --ns-primary-fg, --ns-radius-badge, --ns-ring, --ns-space-1, --ns-space-2, --ns-space-3, --ns-space-4, --ns-space-6, --ns-text-small, --ns-text-strong, --ns-weight-strong.
Contract and compatibility
Accessibility pattern: noninteractive presentation
- Ordered list presentation; status belongs to each step record. Native links are optional, no composite key manager. Current step owns aria-current=step and every status has readable text.
Design contract values marked planned are not implementation props. The props above describe what ships today.