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 ObjectShow Hide properties
full_namestringThe full name of the user
is_over_21booleanWhether the user is over 21 years old
<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
titlestringThe name of the object you are showing.
defaultOpenbooleandefault: falseSet to true for the expandable to open when the page loads
Was this page helpful?Suggest editsRaise issue