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 in the row’s details prop. Details render below the property in a row spanning all three columns.

Nested properties#

Expand or collapse the address details below. The nested table spans the full width, and the following property returns to the normal three-column layout. The id row also shows a simple union inline.

NameTypeDescription
idrequiredstring | number

A resource identifier accepting either a string or a number.

addressobject

Mailing address for the resource.

NameTypeDescription
cityrequiredstringCity name.
postalCodestringPostal or ZIP code.
createdAtstring

Date and time when the resource was created.

Allowed types#

For complex alternatives, use an “Allowed types” expandable. Generated API docs use this label for oneOf and anyOf schemas with detailed alternatives.

NameTypeDescription
recipientrequiredoneOf

Select one of the supported recipient formats.

NameTypeDescription
User IDstringReference an existing user by their identifier.
New recipientobjectSupply contact details for a new recipient.

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
detailsReactNode

Expandable details rendered in a full-width row below the property.

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
Edit this page