shadcn.io is not affiliated with official shadcn/ui
Stepper Playground Block for Ark UI
A design system's stepper playground with orientation, indicator, descriptions and step count controls, a live preview and a props line you can copy to the clipboard.
Installation
Overview
Let people try a stepper before they copy it, with this stepper playground for React with Ark UI. A hairline frame with plus marks holds four controls at the start: orientation as a Toggle Group, indicator (numbers, icons or dots) as a Segment Group, a Switch for descriptions and a Select for the step count from 3 to 6. At the end a framed stage shows a live read-only Steps that redraws with every choice and keeps one height, so nothing below it moves. Under the stage a props line for Quillwork UI's Stepper is built from the choices, and "Copy props", the block's one Shine Button, writes it to the clipboard and says so. Everything is drawn in foreground tones. On a phone the controls sit above the stage. For docs pages, component galleries and design system sites.
FAQ
Does the copy button really copy?
Yes. It writes the props line to the clipboard with the browser's clipboard API and a polite line says it worked or that the browser refused. The line is also plain text you can select.
Is the props line a real API?
It is the line a fictional design system, Quillwork UI, would expect. The preview is the catalog Steps, so to use it for real, map each choice to the props of your own component: orientation and count are Steps props, the indicator and descriptions are what you render inside each item.
Why does the stage never change height?
It has a fixed height tall enough for six vertical steps with descriptions and scrolls inside if your content is taller. The props line and the status sit below it, so they stay where they are.
How do I change the sample steps?
Edit EXAMPLES: each has an id, a title, a description and an icon. The preview shows the first three to six of them.