Skip to contentSkip to Content
Feedback
ComponentsParamTable

ParamTable

A structured table for displaying function or method parameters with name, type, default value, and description columns. Every Python and JavaScript function with parameters on a generated API page gets one, filled from its signature and its docstring or JSDoc; Rust functions show their signature instead. You can also use it by hand for documentation you write yourself.

API

ParamTable

PropTypeDefaultDescription
argsParam[]—Array of parameter objects.

Param object

FieldTypeDefaultDescription
namestring—Parameter name.
typestring—Type annotation string.
defaultstring"-"Default value. Shown as - if omitted.
descriptionstring—Description of the parameter.
hrefstring—Optional 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." } ]} />