Reveal nested data structures on demand

Expandable components allow progressive disclosure of complex object properties and nested content. Essential for documenting API responses with hierarchical data structures.

product attributes name Product name displayed to customers

     price 
        Current selling price in USD
     

     in_stock 
        Availability status for immediate purchase
     

     category 
        Product classification for organization

Example markup:

<Field name="product" type="object">
    <Expandable title="attributes">
        <Field name="name" type="string">
            Product name displayed to customers
        </Field>

        <Field name="price" type="number">
            Current selling price in USD
        </Field>

        <Field name="in_stock" type="boolean">
            Availability status for immediate purchase
        </Field>

        <Field name="category" type="string">
            Product classification for organization
        </Field>
    </Expandable>
</Field>

Pre-expanded Content

authentication credentials api_key Secret key for API authentication

     expires_at 
        Expiration date for the authentication token
     

     permissions 
        List of granted access permissions

Example markup:

<Field name="authentication" type="object">
    <Expandable title="credentials" defaultExpanded>
        <Field name="api_key" type="string">
            Secret key for API authentication
        </Field>

        <Field name="expires_at" type="timestamp">
            Expiration date for the authentication token
        </Field>

        <Field name="permissions" type="array">
            List of granted access permissions
        </Field>
    </Expandable>
</Field>

Nested Expandables

order details order_id Unique identifier for the order

     customer 
         customer_info 
             email 
                Customer's primary email address
             

             phone 
                Contact phone number
             
         
     

     total_amount 
        Final order total including taxes

Configuration Options

title Display label for the expandable section header

defaultExpanded Controls initial visibility state when the page loads