Edit page

Button

Buttons communicate the action that will occur when the user touches them.

Import Syntax

Basic Usage

Appearances

inline
transparent
clear
clearGray
halo
red
green
clearWhite
white

Sizes

extraSmall
small
large
extraLarge
half
fullWidth

Disabled

Grouped

With Icon

iconPosition="before"
iconButton
iconButton white

Toggle Button Group

Props

Button default

PropertyTypeRequiredDefaultDescription
typeEnumfalsebuttonThe HTML type property of the Button.
iconPositionEnumfalseafterThe position of the icon in relation to other children in a Button.
childrenNodefalse-The content of the component; text or icon.
inlineBoolfalse-Style prop used to render an inline Button.
transparentBoolfalse-Style prop used to render a transparent Button.
clearBoolfalse-Style prop used to render a clear Button.
clearGrayBoolfalse-Style prop used to render a clear-gray Button.
clearWhiteBoolfalse-Style prop used to render a clear-white Button.
whiteBoolfalse-Style prop used to render a white Button.
extraSmallBoolfalse-Style prop used to render an extra small Button.
smallBoolfalse-Style prop used to render a small Button.
largeBoolfalse-Style prop used to render a large Button.
extraLargeBoolfalse-Style prop used to render an extra large Button.
fullWidthBoolfalse-Style prop used to render a 100% width Button.
halfBoolfalse-Style prop used to render a 50% width Button.
redBoolfalse-Style prop used to render a red Button.
greenBoolfalse-Style prop used to render a green Button.
disabledBoolfalse-The HTML disabled property of the Button.
hrefStringfalse-The HTML href property of the Button.
iconNodefalse-The icon that will be displayed as the content of a Button.
iconButtonBoolfalse-A style prop used to adjust size and padding of Buttons with only an icon as its content.

ButtonGroup

PropertyTypeRequiredDefaultDescription
childrenNodefalse-The content of the component; should be a number of Buttons.
isToggleBoolfalse-Style prop used to help adjust margins and positioning of Buttons when one is active.