Param
One input inside Params: its name in mono, its type, whether it is required, what it does and its default.
import Param from '@sypnia/ui/astro/Param.astro'
On this page
Inside Params
required true says «required», false says «optional», left out says nothing.
Query parameters
-
limitintegeroptionalHow many rows, up to 100.Default:
20 -
cursorstringoptionalWhere to go on from: the one the previous page gave you. -
tablestringrequiredThe name of the table, as in the console.
Body
It takes no parameters.
Code
---
import Params from '@sypnia/ui/astro/Params.astro';
import Param from '@sypnia/ui/astro/Param.astro';
import ParamsSkeleton from '@sypnia/ui/astro/ParamsSkeleton.astro';
---
<div class="sy-docs sy-stack" style="min-height:0;background:none;--gap:var(--s-5)">
<Params title="Query parameters">
<Param name="limit" type="integer" required={false} default={20}>How many rows, up to 100.</Param>
<Param name="cursor" type="string" required={false}>Where to go on from: the one the previous page gave you.</Param>
<Param name="table" type="string" required>The name of the table, as in the console.</Param>
</Params>
<Params title="Body" />
<ParamsSkeleton rows={2} />
</div> When to use it
Use it when
- Always inside Params.
Do not use it when
- On its own.
For everyone
- On phones the name and the text stack, so nothing scrolls sideways.