Indent
The <Indent> component adds left indentation to create a subtle visual aid that helps maintain readability for blockquotes and long API pages with multiple levels of nested parameters.
Unlike the <Folder> component which only accepts <File> and <Folder> children, <Indent> works with all other components, including accordions, parameter fields, code blocks, and text.
Usage
This text is not indented.
This text is indented.
This text is not indented again.
Variants
With other components
Combine <Indent> with other components like accordions and parameter fields to organize complex hierarchical structures.
class User
Unique identifier for the user
User’s email address
User’s display name
Multiple nesting levels
Nest <Indent> components multiple levels deep to show complex API parameter hierarchies. Each level adds another layer of indentation.
Application configuration object
Database connection settings
Database server hostname
Authentication credentials
Database username
Database password
Cache configuration
Time to live in seconds
Properties
The content to be indented. Can include any React elements, components, text, or markdown.
Optional CSS class name for custom styling. The component includes a fern-indent class by default for targeting with custom styles.