Skip to content

Step

One step of Steps: a title and what to do. The number comes from its place in the list.

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

On this page
  1. Inside Steps
  2. When to use it
  3. For everyone

Inside Steps

Give it an id to link to it.

  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

  • Always inside Steps.

Do not use it when

  • On its own: use a heading and a paragraph.

For everyone

  • Its title is a heading of level 3.
  1. Inside Steps
  2. When to use it
  3. For everyone

    Search pages, sections and terms