Homecomponentsaction
Button
A control that initiates an action.
Create Buttons that perform an action when clicked.
Variants
Use the variant property to change the appearance of the button.
Brand Variants
Ghost Buttons
Use ghost to remove the background and borders from the buttons.
Bleeding Ghost Buttons For Alignment
Ghost buttons have an invisible spacing around them that would not align flush with other elements. In such cases you can use bleedH to remove the spacing horizontally and bleedV to remove the spacing on the top and bottom. You can use bleed as a shorthand for both directions.
This has no impact on non-ghost variants.
Sizes
Use size to set the size of the button.
Small
Medium
Large
Full Width
Use fullWidth to make the button fill the width of its container. This property accepts responsive values.
Icons
Use startIcon or endIcon to add an icon to either side of the button.
Before label
After label
Disabled
Use disabled property to disable the button.
Working
Use the working property to provide feedback when doing an operation in response to being pressed.
Dark Background
Use onColor as variant when button is placed over a colored background. The property ghost has no effect when onColor is used.
Examples
Inline Forms
TODO: Need input components.
Dialog Buttons
TODO: Need dialog component.
Card Actions
Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.API
id
string
type
button
reset
submit
onClick
MouseEventHandler<HTMLButtonElement>
tabIndex
number
startIcon
IconComponent
endIcon
IconComponent
bleedH
true
false
bleedV
true
false
bleed
true
false
disabled
true
false
working
true
false
fullWidth
ResponsiveValue<boolean>
children
ReactNode
size
medium
large
small
variant
primary
secondary
caution
onColor
apple
facebook
google
instagram
linkedin
paypal
stripe
twitter
ghost
true
false
data
DataAttributeMap
ref
Ref<HTMLButtonElement>
key
Key | null