Button

Simple wrapper component for all button types and their states.

Props

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

Types

NamePreview
Primary
Pay
Secondary
Danger
Link
Edit these docs on Github