mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
4c31f3683c
* ai/ keywords * api/ keywords * components/ keywords * create/ keywords * customize/ keywords * api-playground/ keywords * dashboard/ keywords * deploy/ keywords * guides/ keywords * insights/ keywords * integrations/ keywords * optimize/ keywords * organize/ keywords * root/ keywords * rm temp files
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
---
|
|
title: "Expandables"
|
|
description: "Toggle to display nested properties"
|
|
keywords: ["expandables", "nested properties", "expandable fields", "toggle content"]
|
|
---
|
|
|
|
Use expandables to show and hide nested content within response fields. Expandables 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>
|