Button

Used to trigger an operation.

General

The basic Button contains an animation effect.

Preview
See code

Loading

Show running status.

Preview
See code

Disabled

Do not respond to any action.

Preview
See code

Shadow

The shadow highlights the level of the button.

Preview
See code

Type Colors

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

Preview
See code

Lighted

Different state.

Preview
See code

Ghost

The opposite color.

Preview
See code

Rounded

You can completely round the corners of any type of Button with the rounded property.

Preview
See code

Scale

Buttons of different sizes.

Preview
See code

With Icons

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

Preview
See code

APIs

Button.Props

AttributeDescriptionTypeAccepted valuesDefault
typebutton typeButtonTypesButtonTypesdefault
ghostthe opposite colorboolean-false
roundedrounded buttonboolean-false
loadingdisplay loading indicatorboolean-false
shadowdisplay shadowboolean-false
autoautoscale widthboolean-false
effectdisplay animationboolean-true
disableddisable buttonboolean-false
onClickclick handlerMouseEventHandler--
iconshow icon in buttonReactNode--
iconRightshow icon on the other side of the buttonReactNode--
htmlTypenative type of button elementButtonHTMLAttributes.type-button
refforwardRefRef<HTMLButtonElement | null>--
...native propsButtonHTMLAttributes'id', 'className', ...-

ButtonTypes

type ButtonTypes =
  | 'default'
  | 'primary'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'info'
  | 'abort'
  | 'primary-light'
  | 'secondary-light'
  | 'success-light'
  | 'warning-light'
  | 'error-light'
  | 'info-light'
Edit this page on GitHub

Previous

Breadcrumbs

Next

Button Dropdown

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet