Skip to main content
Mintlify

Search documentation

Type to search this documentation.

On this pageOverview

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)
properties
  • full_name (string) — The full name of the user
    • is_over_21 (boolean) — Whether the user is over 21 years old
Expandable
<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>
  • 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.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu