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
Inside Steps
Give it an id to link to it.
Log in
The browser opens; confirm the code it shows.
Create the table
You should see«orders: 1,240 rows, 6 columns».
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.