Skip to content
Eskais UI

Blocks

Steps

Steps and Step: an ordered list with numbered markers, a title, a description and any content per step, side by side on wide containers and stacked on narrow ones.

Example

  1. Add the registry

    One line in components.json.

    components.json
    "@eskais": "https://…/{name}.json"
  2. Declare the layer

    First line of your stylesheet.

    app.css
    @layer ui-sdk;@import "tailwindcss";
  3. Add components

    Dependencies come along.

    Terminal
    npx shadcn@latest add @eskais/theme

Installation

npx shadcn@latest add @eskais/steps

Usage

Import
import { Step, Steps } from "@/components/ui/steps"

Numbered instructions: Step takes a title, a description and children, like a CodeBlock.

API reference

Steps

PropTypeDefault
orientation`auto` lays the steps side by side on a wide container (48rem and up) and stacks them below."auto" | "vertical" | "horizontal""auto"

Also takes <ol> attributes.

Step

PropTypeDefault
titlerequiredReactNode–
descriptionReactNode–
headingLevel2 | 3 | 43
childrenAnything that belongs to the step, like a CodeBlock; it fills the remaining height.ReactNode–

Also takes <li> attributes except title.

Other exports

type StepPropstype StepsProps

Accessibility

  • An ordered list, so the count comes from the list; the visual numbers are hidden from screen readers.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.