Button

Used to trigger an operation.

General

The basic Button contains an animation effect.

Loading

Show running status.

Disabled

Do not respond to any action.

Shadow

The shadow highlights the level of the button.

Type Colors

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

Lighted

Different state.

Ghost

The opposite color.

Rounded

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

Scale

Buttons of different sizes.

With Icons

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

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