Skip to contentSkip to Content
ComponentsParamTable

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

PropTypeDefaultDescription
argsParam[]Array of parameter objects.

Param object

FieldTypeDefaultDescription
namestringParameter name.
typestringType annotation string.
defaultstring"-"Default value. Shown as - if omitted.
descriptionstringDescription of the parameter.
hrefstringOptional URL to link the type badge to its documentation.

Example

NameTypeDefaultDescription
hoststr"localhost"Server hostname.
portint8080Server port number.
debugboolFalseEnable debug mode.
workersint-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." } ]} />