Params
The inputs of an endpoint, a tool or a command, or the fields of a response: name, type, whether it is required, what it does.
import Params from '@sypnia/ui/astro/Params.astro'
Parameters, none, and loading
With no Param inside it says so in words. ParamsSkeleton at the end.
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
- Reference pages: endpoints, MCP tools, CLI commands, configuration.
Do not use it when
- Explaining a concept: write prose.
For everyone
- It is a list, and «required» is a word, not a colour or a star.