The Field component creates styled parameter documentation blocks, commonly used in API reference pages to document function parameters, API endpoints, or configuration options.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devscribe-team/webeditor/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Field components display as bordered cards containing:- Parameter name (displayed as code)
- Type badge with the parameter type
- Required/optional badge
- Content area for the parameter description
Insertion
Insert a Field component using the command menu:- Type
/to open the command menu - Search for “field” or “parameter”
- Select the Field option
Attributes
The parameter name displayed in the field header. Shown in monospace font.
The data type of the parameter (e.g.,
string, number, boolean, object, array).Whether the parameter is required. When
true, displays a red “required” badge. When false, displays a muted “optional” badge.Node specification
Usage examples
Basic parameter field
Optional parameter with complex type
Array parameter
Editing in the editor
The content area supports all standard markdown formatting including:- Paragraphs and line breaks
- Inline code and code blocks
- Lists (ordered and unordered)
- Bold, italic, and other text formatting
TypeScript types
Best practices
- Use descriptive names: Parameter names should be clear and match your actual API
- Specify accurate types: Use precise type names like
string | nullorPromise<User> - Document constraints: In the description, mention any validation rules, formats, or limits
- Be consistent: Use the same type naming conventions throughout your documentation
The Field component is designed to work seamlessly with API documentation. For a complete API reference page, combine multiple Field components with headings and descriptions.