Skip to contentSkip to Content
ComponentsConfigPanel

ConfigPanel

Pair a YAML example with short field notes. Use it when a configuration snippet needs explanation but a full reference table would interrupt the guide.

API

PropTypeDefaultDescription
titlestringSection title.
descriptionstringShort explanation below the title.
fieldsConfigField[][]Field notes shown below the example.
childrenReactNodeUsually a fenced YAML block.

ConfigField supports name, type, default, and description.

Example

source.python

Tell Folio where your package code lives.

source: python: paths: - "src/mymath" docstring_style: "google"
paths
Python source directories to scan.
list[string]
docstring_style
Parser for Google or NumPy style docstrings.
stringdefault: auto
<ConfigPanel title="source.python" description="Tell Folio where your package code lives." fields={[ { name: "paths", type: "list[string]", description: "Python source directories to scan." }, { name: "docstring_style", type: "string", default: "auto", description: "Parser for Google or NumPy style docstrings." }, ]} > ```yaml source: python: paths: - "src/mymath" ``` </ConfigPanel>