Accordion | UI components (BETA)
APPLICABLE PRODUCTS
-
Sales Hub
- Enterprise
-
Service Hub
- Enterprise
The Accordion
component renders an expandable and collapsable section that can contain other components. This component can be helpful for saving space and breaking up extension content.
Prop | Type | Description |
---|---|---|
title Required |
String | The accordion's title text. |
defaultOpen |
Boolean | When set to true , the accordion will be open on initial page load. The open prop takes precedence over this prop. |
disabled |
Boolean | When set to true , the accordion's state cannot be changed. Set to false by default. |
open |
Boolean | Controls the accordion's open state programmatically. When set to true , the accordion will open. Takes precedence over defaultOpen . |
onClick |
() => void |
A function that will be invoked with the accordion title is clicked. This function receives no arguments and its returned value is ignored. |
size |
'xs' , 'extra-small' | 'sm' , 'small' | 'med' , 'medium' (default) |
The size of the accordion title. |
Thank you for your feedback, it means a lot to us.
This form is used for documentation feedback only. Learn how to get help with HubSpot.