Skip to content

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'

On this page
  1. Parameters, none, and loading
  2. When to use it
  3. For everyone

Parameters, none, and loading

With no Param inside it says so in words. ParamsSkeleton at the end.

Query parameters

  • limit
    integeroptional
    How many rows, up to 100.

    Default: 20

  • cursor
    stringoptional
    Where to go on from: the one the previous page gave you.
  • table
    stringrequired
    The 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.
  1. Parameters, none, and loading
  2. When to use it
  3. For everyone

    Search pages, sections and terms