Indent
The <Indent> component adds left indentation with a vertical guide line. It’s a subtle visual aid that helps maintain readability in long API pages with multiple levels of nested parameters, and for blockquotes.
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
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 with its own guide line.
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.