A Button triggers an action or an event.
intentstringThe intent of the button.
appearancestringThe appearance of the button.
size'small' | 'medium' | 'large'The size of the button
isLoadingboolWhen true, show a loading spinner before the children. This also disables the button.
isActiveboolForcefully set the active state of a button. Useful in conjunction with a Popover.
iconBeforeelementType | elementSets an icon before the text. Can be any icon from Evergreen or a custom element.
iconAfterelementType | elementSets an icon after the text. Can be any icon from Evergreen or a custom element.
disabledboolWhen true, the button is disabled. isLoading also sets the button to disabled.
classNamestringClass name passed to the button. Only use if you know what you are doing.
size'small' | 'medium' | 'large'The size of the button
iconelementType | elementThe Evergreen icon or custom icon to render
iconSizenumberSpecifies an explicit icon size instead of the default value
intentstringThe intent of the button.
appearance'default' | 'minimal' | 'primary'The appearance of the button.
isActiveboolForcefully set the active state of a button. Useful in conjunction with a Popover.
disabledboolWhen true, the button is disabled. isLoading also sets the button to disabled.
classNamestringClass name passed to the button. Only use if you know what you are doing.
isActiveboolForcefully set the active state of a button. Useful in conjuction with a Popover.
disabledboolWhen true, the button is disabled. isLoading also sets the button to disabled.
iconelementType | elementAn Evergreen icon or custom icon node. By default it uses CaretDownIcon
classNamestringClass name passed to the button. Only use if you know what you are doing.