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, type tags, and indicators that show whether the parameter is required.

PropsLink

PropTypeDefaultDescription
namestringRequiredThe name of the property, variable, or option in monospace code style.
typestringundefinedThe type representation of the property (e.g. 'string', 'number', 'boolean').
requiredbooleanfalseWhen true, shows a red 'required' tag next to the type.
descriptionstringundefinedOptional summary text. You can also pass the description directly as children for formatted content.
childrenReactNodeundefinedThe body description explaining what the field is for.
Last updated on October 18, 2026

Was this page helpful?