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