Skip to main content

DocExpandable

Summary

Represents an Expandable component for Mintlify documentation. Renders as: …

Signature

export declare class DocExpandable extends DocNode 

Constructors

constructor

Constructs a new instance of the class

Properties

content

Modifiers: readonly Type:readonly content: DocSection; Default: “

kind

Modifiers: readonly Type:get kind(): string; Default: “

title

Modifiers: readonly Type:readonly title: string; Default: “

Methods

getChildNodes

Events

No events defined.

Remarks

Expandable sections create collapsible content areas in the documentation. The title is always visible, while the content can be expanded/collapsed by users. If no title is provided, defaults to “Details”.

Examples

Example 1