Steps
An ordered list, so screen readers announce the step count and position. The horizontal row switches to the vertical layout below tablet width.
How it works
From install to first page
Install the library
Add @samla/ui to an Astro project as a dependency.
Import global.css
Load the base styles once in the site layout.
Compose a page
Import sections and fill their props and slots.
Set your tokens
Override colour and type tokens to fit the brand.
Options
Section titled “Options”eyebrow,title,intro: optional section header. Withouttitle, step titles becomeh2steps: list of{ title, text?, icon?, image?, imageAlt? }orientation:horizontal(default),vertical(in a narrow container)marker:number(default),icon(uses each step’sicon, falling back to its number)align:start(default),center. Centres the header and, in horizontal rows, each stepimageper step: shown above the title in a row, beneath the text in a columnsurface:light,alternate,brand,dark
<Steps eyebrow="How it works" title="From install to first page" steps={[ { title: "Install the library", text: "Add @samla/ui to an Astro project." }, { title: "Import global.css", text: "Once, in the site layout." }, { title: "Compose a page", text: "Fill section props and slots." }, ]}/>Getting started
Install the library
Add @samla/ui to an Astro project as a dependency.
Import global.css
Load the base styles once in the site layout.
Compose a page
Import sections and fill their props and slots.
Set your tokens
Override colour and type tokens to fit the brand.
Three steps to a page
Install the library
Add @samla/ui to an Astro project as a dependency.
Import global.css
Load the base styles once in the site layout.
Compose a page
Import sections and fill their props and slots.
What you do next
Install the library
Add @samla/ui to an Astro project as a dependency.
Import global.css
Load the base styles once in the site layout.
Compose a page
Import sections and fill their props and slots.