Files
mintlify__docs/components/expandables.mdx
mintlify[bot] 85b5162491 docs: add missing periods to component property descriptions (#7304)
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-09-08 23:58:52 +00:00

51 lines
1.5 KiB
Plaintext

---
title: "Expandables"
description: "Use the expandable component to toggle nested object properties in API documentation, showing child fields for request and response objects."
keywords: ["expandables", "nested properties", "expandable fields", "toggle content"]
boost: 3
---
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>
<ResponseField name="className" type="string">
Additional CSS classes to apply to the expandable.
</ResponseField>