Button

Simple wrapper component for all button types and their states.

Props

NamePropTypeRequiredDefault ValueAllowed Values
classNamestringfalsenull
typeenumfalseButton.Type.PRIMARY
  • Button.Type.PRIMARY
  • Button.Type.PAY
  • Button.Type.SECONDARY
  • Button.Type.DANGER
  • Button.Type.LINK
sizeenumfalseButton.Size.MEDIUM
  • Button.Size.EXTRA_SMALL
  • Button.Size.SMALL
  • Button.Size.MEDIUM
  • Button.Size.LARGE
disabledboolfalsefalse
blockboolfalsefalse
loadingboolfalsefalse
onClickcustomfalse
childrennodetrue
htmlTypeenumfalsebutton
  • submit
  • reset
  • button

Types

NamePreview
Primary
Pay
Secondary
Danger
Link
Edit these docs on Github