1. Home
  2. ChevronRightMdx
  3. ChevronRightField

Field

Document API properties, configuration keys, or schema definitions inline with the Field component.

The <Field> component is a clean way to document specific settings, configuration parameters, or API properties. It renders a clean border, monospace parameter details, badges for types, and labels indicating if the parameter is required.


UsageLink

<Field name="siteUrl" type="string" required>
  The production URL of your documentation site. Used to generate sitemaps, robots.txt, and configure canonical links for SEO.
</Field>

PropsLink

PropTypeDefaultDescription
namestringRequiredThe name of the property, variable, or option in monospace code styling.
typestringundefinedThe type representation of the property (e.g. 'string', 'number', 'boolean').
requiredbooleanfalseIf true, displays a red 'required' badge next to the type.
descriptionstringundefinedOptional summary text. You can also specify the description directly as child elements for formatting support.
childrenReactNodeundefinedThe body description explaining what the field is for.
Last updated on July 27, 2026

Was this page helpful?