Skip to main content

Button

Basic Usage

API

Button

The properties of the Button are described as follows:

PropertyDescriptionTypeDefaultrequired
blockOption to fit button width to its parent widthboolean-false
classNameset class selectorstirng-false
disabledDisabled state of buttonboolean-false
iconSet the icon component of buttonReact.ReactNode-false
sizeSet the size of button'large' | 'default' | 'small''default'false
styleset the styleReact.CSSProperties-false
typeCan be set to primary ghost danger defaultstring'default'false
onClickSet the handler to handle click event(event: MouseEvent) => void() => undefinedfalse