BalanceReckon Design System
FoundationsButton

Button

Buttons allow users to perform an action or to navigate to another page / view.

ButtonStylesProps

PropTypeRequiredDefaultDescription
blockbooleanYesfalse—
borderBottomWidthCSSObject['borderBottomWidth']———
borderLeftWidthCSSObject['borderLeftWidth']———
borderRadiusCSSObject['borderRadius']———
borderRightWidthCSSObject['borderRightWidth']———
borderTopWidthCSSObject['borderTopWidth']———
colorSchemeColorScheme
primary|secondary|tertiary|critical
Yes——
disabledboolean———
fontWeightnumber———
hasIconbooleanYes——
isIconbooleanYes——
loadingboolean———
sizeSize
xsmall|small|medium|large
Yes——
variantVariant
filled|outline|text
Yes——

ButtonProps

PropTypeRequiredDefaultDescription
blockboolean—falseWhen true, the button will fill the available width of its container.
borderBottomWidthCSSObject['borderBottomWidth']———
borderLeftWidthCSSObject['borderLeftWidth']———
borderRadiusCSSObject['borderRadius']——Props to manipulate the border in detail.
borderRightWidthCSSObject['borderRightWidth']———
borderTopWidthCSSObject['borderTopWidth']———
childrenReactNode———
colorSchemeColorScheme
primary|secondary|tertiary|critical
—primaryColor of the button.
dataDataAttributeMap——Test id for the button
disabledboolean—falseWhen true, the button will be disabled.
iconAfterComponentType<IconProps>——An element rendered after the button content.
iconBeforeComponentType<IconProps>——An element rendered before the button content.
labelstringYes——
loadingboolean—falseWhen true, the button will display a loading spinner.
sizeSize
xsmall|small|medium|large
—mediumThe size of the button.
type
submit|button|reset
——Provide an alternate type if the button is within a form.
variantVariant
filled|outline|text
—filledStyle of the button.