Learn about the ButtonRow component for use in UI extensions.
ButtonRow
component renders a row of specified Button components. Use this component when you want to include multiple buttons in a row.
When the number of included buttons exceeds the available space, the extra buttons will be presented as a Dropdown style button, which you can configure using the dropDownButtonOptions
prop.
Prop | Type | Description |
---|---|---|
disableDropdown | Boolean | By default, when the number of buttons exceeds the available horizontal space, the extra buttons will collapse into a single dropdown menu button. Set this prop to true to prevent the dropdown button from being interacted with. Default is false . |
dropDownButtonOptions | Object | When the included buttons exceed the available space, use this prop to customize the dropdown button. This prop takes an object containing the following key: 'value' pairs:
|
dropDownButtonOptions
prop to customize its appearance. This prop takes an object that can include size
, text
, and variant
fields. The size
and variant
fields use the same options available for those props in the Dropdown
component.
dropDownButtonOptions
to configure multiple options.
'primary'
and 'secondary'
button in a row to progress through a multi-step form.'destructive'
and 'secondary'
button in a row to confirm and cancel a contact deletion.