Skip to main content
NetScriptdocs Search docs ⌘K v0.0.9
Browse documentation

Stepper

Ordered progress steps with native links and readable status.

All components · Theme builder · Implementation source

Live preview

Open live stepper preview

Install

Shell
netscript ui:add stepper

Usage and examples

The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.

TypeScript
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.

OwnerPropTypeOptionalDescription
StepperPropssteps[object Object]No
StepperPropsorientation"horizontal" | "vertical"Yes
StepperPropsdescriptionbooleanYes
StepperPropsconnectorbooleanYes
StepperPropsclassstringYes
TypeScript
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.

Search all documentation

Type a term to search the documentation.