Button

Props

NamePropTypeRequiredDefault ValueAllowed ValuesDescription
blockboolfalsefalse
childrennodetrue
classNamestringfalsenull
disabledboolfalsefalse
htmlTypeenumfalsebutton
  • submit
  • reset
  • button
loadingboolfalsefalse
onClickcustomfalse
priorityenumfalsePriority.PRIMARY
  • primary
  • secondary
  • tertiary
sizeenumfalseSize.MEDIUM
  • xs
  • sm
  • md
  • lg
@deprecated `xs`
typeenumfalseControlType.ACCENT
  • accent
  • positive
  • negative
  • primary
  • pay
  • secondary
  • danger
  • link
@deprecated `primary`, `pay`, `secondary`, `danger`, `link`

Variants

TypePriorityPreview
AccentPrimary
AccentSecondary
AccentTertiary
PositivePrimary
PositiveSecondary
NegativePrimary
NegativeSecondary
Edit these docs on Github