- API Components
- Expand Object Properties
API Components
Expand Object Properties
Toggle to display nested properties.
user
User Object
<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>
<ResponseField name="age" type="number">
The last name of the user
</ResponseField>
</Expandable>
</ResponseField>
Props
name
required
string
The name of the object you are showing. Used to generate the “Show NAME” and “Hide NAME” text.
defaultOpen
default:false
boolean
Set to true to show the component as open when the page loads.
<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>
<ResponseField name="age" type="number">
The last name of the user
</ResponseField>
</Expandable>
</ResponseField>