Logo

Getting Started

IntroductionInstallationQuick Start
Logo
DocumentationAPI ReferenceChangelog

Components

ParamField

Document API parameters and configuration options with type information and badges

Overview

The <ParamField> component documents parameters, configuration options, or properties with type information, requirement status, and descriptions. Commonly used in API documentation and configuration references.

Basic Usage

apiKey
stringrequired

Your API authentication key from the dashboard.

Examples

Required String Parameter

email
stringrequired

User's email address. Must be a valid email format.

Optional Number with Default

pageSize
number

Number of items per page. Maximum: 100.

Default: 20

Nested Object Path

user.profile.avatar
string

URL to the user's profile picture.

Header Parameter

X-API-Key
stringrequiredheader

Your API key for authentication.

Deprecated Parameter

user_id
stringdeprecated

Deprecated: Use userId instead (camelCase).

Common Patterns

Configuration Documentation

Database Configuration

host
stringrequired

Database server hostname or IP address.

port
number

Database server port.

Default: 5432
ssl
boolean

Enable SSL/TLS encryption for database connections.

Default: false

API Query Parameters

Query Parameters

limit
numberquery

Maximum number of results to return (1-100).

Default: 10
offset
numberquery

Number of results to skip for pagination.

Default: 0
sort
stringquery

Field to sort by. Prefix with - for descending order.

Examples: created_at, -updated_at

Features

Each ParamField automatically generates an anchor link for easy reference:

See the [apiKey parameter](#param-apikey) for authentication details.

Type Badges

Type badges are color-coded:

  • Gray badge shows the data type
  • Red badge for required parameters
  • Orange badge for deprecated parameters
  • Blue badge for parameter location (query, header, etc.)

Rich Descriptions

Descriptions support full Markdown:

<ParamField path="webhook_url" type="string" required>
  HTTPS endpoint to receive webhook events.

**Requirements:**

- Must use HTTPS protocol
- Must return 200 status code
- Response within 5 seconds

See [Webhook Security](/docs/webhooks/security) for best practices.

</ParamField>

Props

path
string

The parameter name or path. Displayed prominently and used for anchor links.

<ParamField path="user.email" type="string">
  User's email address
</ParamField>
type
stringrequired

The data type of the parameter.

Common types: string, number, boolean, object, array, enum

<ParamField path="timeout" type="number">
  Request timeout in milliseconds
</ParamField>
required
boolean

Whether the parameter is required. Displays a red "required" badge.

<ParamField path="username" type="string" required>
  User's unique username
</ParamField>
deprecated
boolean

Mark parameter as deprecated with strikethrough and orange badge.

<ParamField path="oldField" type="string" deprecated>
  Use newField instead
</ParamField>
default
string

Default value if parameter is omitted.

<ParamField path="retries" type="number" default="3">
  Number of retry attempts
</ParamField>
body
string

Location of the parameter: query, path, body, or header.

<ParamField path="Authorization" type="string" body="header">
  Bearer token for authentication
</ParamField>
children
ReactNoderequired

Description of the parameter. Supports Markdown formatting.


Next, learn about the ResponseField Component for API response documentation.

Built with Chakra UI

On this page
OverviewBasic UsageExamplesRequired String ParameterOptional Number with DefaultNested Object PathHeader ParameterDeprecated ParameterCommon PatternsConfiguration DocumentationAPI Query ParametersFeaturesAnchor LinksType BadgesRich DescriptionsProps