ParamTable
A structured table for displaying function or method parameters with name, type, default value, and description columns. This component is typically auto-generated from Python docstrings during the build, but you can also use it manually for hand-crafted documentation.
API
ParamTable
| Prop | Type | Default | Description |
|---|---|---|---|
args | Param[] | — | Array of parameter objects. |
Param object
| Field | Type | Default | Description |
|---|---|---|---|
name | string | — | Parameter name. |
type | string | — | Type annotation string. |
default | string | "-" | Default value. Shown as - if omitted. |
description | string | — | Description of the parameter. |
href | string | — | Optional URL to link the type badge to its documentation. |
Example
| Name | Type | Default | Description |
|---|---|---|---|
| host | str | "localhost" | Server hostname. |
| port | int | 8080 | Server port number. |
| debug | bool | False | Enable debug mode. |
| workers | int | - | Number of worker processes. Required. |
<ParamTable args={[
{ name: "host", type: "str", default: '"localhost"', description: "Server hostname." },
{ name: "port", type: "int", default: "8080", description: "Server port number." },
{ name: "debug", type: "bool", default: "False", description: "Enable debug mode." },
{ name: "workers", type: "int", description: "Number of worker processes. Required." }
]} />