Skip to content
Mintlify
Mintlify
Components

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.

userUser Object
Show properties
full_namestring

The full name of the user

is_over_21boolean

Whether the user is over 21 years old

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

titlestring

The name of the object you are showing.

defaultOpenbooleandefault: false

Set to true for the expandable to open when the page loads

Was this page helpful?Suggest editsRaise issue

On this page