Field
The <Field> component documents a single parameter or property with a monospace name, type badge, required/optional/deprecated status, optional default value, and description body. Wrap related fields in <FieldGroup> to create titled sections, with optional collapsible behavior for nested objects and arrays.
Basic fields
Code
Output
The user's display name.
A valid email address used for login and notifications.
Short biography shown on the user's profile page.
Required and optional
Code
Output
The document title. Must be unique within the project.
Optional list of tags for categorization.
With default values
Code
Output
3000Port number for the development server.
defaultTheme identifier to apply to the documentation site.
Deprecated field
Code
Output
Use outDir instead. This field will be removed in v3.
distDirectory for build output.
Nested object
Use an expandable <FieldGroup> inside a <Field> to document object-typed properties.
Code
Output
Top-level configuration object.
Nested array
For array types, nest a <FieldGroup> describing the shape of each array item.
Code
Output
List of matching user records.
CLI options
<Field> also works well for documenting command-line flags.
Code
Output
distOutput directory for generated files.
falseEnable verbose logging output.
Path to a custom configuration file.
Deep nesting
For objects nested deeper than two levels, consider linking to a dedicated reference page instead of inlining everything. Deeply nested expandable groups become hard to scan and navigate.