Dropdown | UI components (BETA)
The Dropdown
component renders a dropdown menu that can appear as a button or hyperlink. Use this component to enable users to select from multiple options in a compact list. This component includes sizing options.
Prop | Type | Description |
---|---|---|
options Required |
Object | The options included in the dropdown menu. For each option, include:
|
variant |
'primary' (default) | 'secondary' | 'transparent' |
The type of dropdown button to display. 'primary' and 'secondary' will display a blue and grey button, respectively, while 'transparent' will display a blue hyperlink. |
buttonText |
String | The button text. |
buttonSize |
'xs' , 'extra-small' | 'sm' , 'small' | 'md' , 'medium' (default) |
The size of the button. |
disabled |
Boolean | When set to true , the dropdown button cannot be focused or clicked. Set to false by default. |
Using the variant
and buttonSize
props, you can set the type of button along with its size.
'primary'
buttons with size set to'xs'
,'sm'
, and'md'
respectively:'secondary'
buttons with size set to'xs'
,'sm'
, and'md'
respectively:'transparent'
buttons with size set to'sm'
and'md'
respectively:
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.