Components

Properties table

Document parameters and schema fields in tables.

Use PropertiesTable with PropertiesTable.Row children to document parameters, response fields, and component properties. Each row shows a name, type, and description, with optional required and deprecated badges.

Basic usage#

NameTypeDescription
idrequiredstring

Unique identifier for the resource.

limitinteger

Maximum number of records to return.

Default: 20

Use separate headings and tables for headers, path parameters, query parameters, and cookies. For nested objects, place an Expandable containing another table inside a row's description.

Row properties#

NameTypeDescription
namerequiredstring

Property or parameter name.

typestring | number | boolean | null

Type label. HTML entities in string values are decoded before rendering.

defaultstring | number | boolean | null

Default value, displayed below the description.

requiredboolean

Shows a required badge.

Default: false
deprecatedboolean

Shows a deprecated badge.

Default: false
childrenReactNode

Property description and any nested content.

Inline parameter names#

Use Param to render inline parameter names as code:

Set limit and offset together for pagination.

Last updated on