Param field
Document request parameters with location and type badges.
Use ParamField for query, path, header, or body parameters, and Param for
inline parameter names.
Basic usage#
Maximum number of records to return.
Location variants#
User id in the URL path.
Bearer token.
The location badge is inferred from query, path, header, or body. If
several are set, precedence is query → path → header → body. The
display label is name, or the first location prop value when name is
omitted.
Inline parameter names#
Set limit and offset together for pagination.
Properties#
ParamField#
| Name | Type | Description |
|---|---|---|
| name | string | Display label for the parameter. |
| query | string | Query parameter name. Marks the field as a query param. |
| path | string | Path parameter name. Marks the field as a path param. |
| header | string | Header name. Marks the field as a header param. |
| body | string | Body field name. Marks the field as a body param. |
| type | string | Type label shown next to the name. |
| required | boolean | Shows a required badge. Default: false |
| children | ReactNode | Parameter description. |
Param#
| Name | Type | Description |
|---|---|---|
| children | ReactNode | Inline parameter name rendered as code. |