Code
In context
Install · Free Web Component
One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.
The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:
Pro · React + TypeScript Pro
One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.
- React component (controlled or uncontrolled) with TypeScript types and the full source
- Sunset, Mint and Mono tints, plus custom tints from Brand Fit
- The vanilla Web Component with every tint, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| <li> | children | — | The steps, in order: the text is the label, data-description="…" adds a second line. From script: el.steps = [{ label, description }]. |
| value | number | 0 | Index of the current step, 0-based. Steps before it are done; a value equal to the number of steps means everything is done. |
| orientation | 'horizontal' | 'vertical' | 'horizontal' | A row with labels underneath, or a column with labels and descriptions beside the beads. |
| size | number (px) | 36 | Bead size; the tube and the labels scale with it. |
| width | number (px) | CSS width | 100% | Width of the whole stepper; the steps share it equally. |
| clickable | boolean | off | Finished steps become buttons that go back: the element sets value and fires change with detail.value. Upcoming steps cannot be jumped to. |
| next() / prev() | methods | — | Move one step forward or back from script. |
| label | string | 'Progress' | Accessible name of the list. |
| theme | 'light' | 'dark' | 'light' | White porcelain or dark. |
| sound | boolean | off | A porcelain tap when you step back. Also on for everything inside an element with data-ui-sound="on". |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the light in the tube and of the halo, or a custom tint. Free build ships Aurora only. |
It is an ordered list: the current step carries aria-current="step" and finished ones are announced as “Completed”. The stepper shows progress — it does not hide or show your form panels; switch those yourself from value. In a row each step gets an equal share of the width, so keep labels to a word or two, or go vertical on narrow screens. The first paint is still; the flow, the check and the rising bead play only when the value changes. All CSS, no WebGL.
More components
- Halo Avatar
- Pearl Skeleton
- Pearl Table
- Pearl Empty
- Tide Slide
- Pearl Code
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Glass Toast
- Pearl Select
- Glass Sheet
- Pearl Accordion
- Glass Tip
- Pearl Calendar
- Glass Nav
- Pearl Tabs
- Glass Command
- Pearl Chip
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- Plasma Orb
- Voice Wave
- Plush Buddy
- Gummy Agent
- Glass Tabbar
- Glass Menu
- Pearl Pricing
- Glass Bento
- Quote Wall
- Glass Cta
- Magnet Button
- Beam Border
- Spotlight Card
- Scratch Reveal
- Glass Sidebar
- Pearl Pagination
- Pearl Breadcrumb
- Glass Dock
- Pearl Slider
- Pearl Segmented
- Liquid Metal Button
- Mercury Orb
- Prompt Input
- Voice Orb
- Aurora Ring
- Glass Toggle
- Firefly Button
- Pearl Button
- Pearl Loader
- Alien Face
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel