Skip to content

Steps

A how-to, numbered. Each step holds the exact command or code, and often what the reader should see.

import Steps from '@sypnia/ui/astro/Steps.astro'

On this page
  1. Three steps
  2. When to use it
  3. For everyone

Three steps

A step can hold anything: text, code, an Expected.

  1. Log in

    The browser opens; confirm the code it shows.

    sypnia login
  2. Create the table

    sypnia tables create orders --from orders.csv
    You should see

    «orders: 1,240 rows, 6 columns».

  3. Read it from your app

    Use the SDK, or the API with your token.

Code
---
import Steps from '@sypnia/ui/astro/Steps.astro';
import Step from '@sypnia/ui/astro/Step.astro';
import Expected from '@sypnia/ui/astro/Expected.astro';
import CodeBlock from '@sypnia/ui/astro/CodeBlock.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
<Steps>
  <Step title="Log in">
    <p>The browser opens; confirm the code it shows.</p>
    <CodeBlock code="sypnia login" lang="sh" bare />
  </Step>
  <Step title="Create the table">
    <CodeBlock code="sypnia tables create orders --from orders.csv" lang="sh" bare />
    <Expected><p>«orders: 1,240 rows, 6 columns».</p></Expected>
  </Step>
  <Step title="Read it from your app"><p>Use the SDK, or the API with your token.</p></Step>
</Steps>
</div>

When to use it

Use it when

  • The reader does things in order and must not skip one.

Do not use it when

  • Things that can be done in any order: a list.
  • One step: write it as a paragraph.

For everyone

  • It is an ordered list, so screen readers say «step 2 of 3».
  • Each step title is a heading, so it shows in «On this page».
  1. Three steps
  2. When to use it
  3. For everyone

    Search pages, sections and terms