Button Dropdown

Display related but alternate actions for a button.

General

The basic ButtonDropdown usage.

Loading

Show friendly load indicator.

Disabled

Disable all buttons.

Types

You can change the color of the ButtonDropdown with the property type.

Multiple Type

Specify the status of a button individually.

Custom Right Icon

The color and size of the right icon will be set automatically.

Item Icons

Use icon on an item to show an icon before its label. Items in the list align to the left and the list grows to fit them.

Alignment

Use align to place the label of the main button at the start, center or end. It shows when the button is wider than its text.

APIs

ButtonDropdown.Props

AttributeDescriptionTypeAccepted valuesDefault
typebutton typeButtonDropdownTypesButtonDropdownTypesdefault
loadingdisplay loading indicatorboolean-false
autoautoscale widthboolean-false
alignmain button label alignment'start' | 'center' | 'end'-center
disableddisable buttonboolean-false
iconcustom right iconReactNode-ButtonDropdownIcon
...native propsHTMLAttributes'autoFocus', 'name', 'className', ...-

ButtonDropdown.Item.Props

AttributeDescriptionTypeAccepted valuesDefault
typebutton typeButtonDropdownTypesButtonDropdownTypesdefault
mainthe main actionboolean-false
iconicon before the labelReactNode--
onClickevent handlerMouseEventHandler--
...native propsButtonHTMLAttributes'id', 'name', 'className', ...-

ButtonDropdownTypes

type ButtonDropdownTypes =
  | 'default'
  | 'primary'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'info'
Edit this page on GitHub