Files
mintlify__docs/components/expandables.mdx
mintlify[bot] dbdb1a298b Fix Vale style warnings across documentation (#4036)
* Fix Vale style warnings across documentation

Generated-By: mintlify-agent

* Apply suggestion from @ethanpalm

* Apply suggestion from @ethanpalm

* Apply suggestions from code review

* Update guides/automate-agent.mdx

* Update integrations/analytics/adobe.mdx

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2026-03-05 10:11:54 -08:00

46 lines
1.3 KiB
Plaintext

---
title: "Expandables"
description: "Toggle expandable sections to show and hide nested object properties in API documentation and response fields."
keywords: ["expandables", "nested properties", "expandable fields", "toggle content"]
---
Use expandables to show and hide nested content within response fields. They are particularly useful for displaying complex object properties in API documentation.
<ResponseField name="user" type="User Object">
<Expandable title="properties">
<ResponseField name="full_name" type="string">
The full name of the user
</ResponseField>
<ResponseField name="is_over_21" type="boolean">
Whether the user is over 21 years old
</ResponseField>
</Expandable>
</ResponseField>
```mdx Expandable example
<ResponseField name="user" type="User Object">
<Expandable title="properties">
<ResponseField name="full_name" type="string">
The full name of the user
</ResponseField>
<ResponseField name="is_over_21" type="boolean">
Whether the user is over 21 years old
</ResponseField>
</Expandable>
</ResponseField>
```
## Properties
<ResponseField name="title" type="string">
The name of the object you are showing.
</ResponseField>
<ResponseField name="defaultOpen" type="boolean" default="false">
Set to `true` for the expandable to open when the page loads
</ResponseField>