# Expandables

> Use the expandable component to toggle nested object properties in API documentation, showing child fields for request and response objects.

Use expandables to show and hide nested content within response fields. They are particularly useful for displaying complex object properties in API documentation.

- `user` (User Object)

:::accordion{title="properties"}
* `full_name` (string) — The full name of the user

  - `is_over_21` (boolean) — Whether the user is over 21 years old
:::

```mdx Expandable example theme={null}
<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

- `title` (string) — The name of the object you are showing.

- `defaultOpen` (boolean) — Set to `true` for the expandable to open when the page loads.

- `className` (string) — Additional CSS classes to apply to the expandable.

## Related topics

- [Format code](/docs/create/code.md)
- [Components overview](/docs/components/index.md)
- [Accordions](/docs/components/accordions.md)

## Related pages

- [Ai](./ai-index.md)
- [Analytics overview](./analytics-index.md)
- [Api](./api-index.md)
- [Api playground](./api-playground-index.md)
- [Assistant](./assistant-index.md)
- [Automations overview](./automations-index.md)
- [Components overview](./components-index.md)
- [Create](./create-index.md)
- [Customize](./customize-index.md)
- [Dashboard](./dashboard-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
