Step
Un paso de Steps: un título y qué hacer. El número sale de su lugar en la lista.
import Step from '@sypnia/ui/astro/Step.astro'
En esta página
Dentro de Steps
Dale un id para enlazarlo.
Log in
The browser opens; confirm the code it shows.
Create the table
Deberías ver«orders: 1,240 rows, 6 columns».
Read it from your app
Use the SDK, or the API with your token.
Código
---
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> Cuándo usarlo
Úsalo cuando
- Siempre dentro de Steps.
No lo uses cuando
- Suelto: usa un título y un párrafo.
Para todos
- Su título es un título de nivel 3.