We’re excited to announce Bit’s new home at bit.dev!Learn more

button

v3.9.2arrow_drop_down
v3.9.2
STATUS
Passing
DOWNLOADS
8,478
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
2 months ago
subject
Buttons allow users to take actions, and make choices, with a single tap.
1 contributor
Like
Use button in your project ?
Copied
npm i @bit/mui-org.material-ui.button
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
modified
modified
withStyles(styles)( CustomizedButtons
modified
modified
modified
modified
modified
chevron_left
chevron_right
Properties
NameTypeDefault valueDescription
children
node

The content of the button.

classes
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
color
'default' | 'inherit' | 'primary' | 'secondary''default'

The color of the component. It supports those theme colors that make sense for this component.

component
custom'button'

The component used for the root node. Either a string to use a DOM element or a component.

disabled
boolfalse

If true, the button will be disabled.

disableFocusRipple
boolfalse

If true, the keyboard focus ripple will be disabled. disableRipple must also be true.

disableRipple
bool

If true, the ripple effect will be disabled.

focusVisibleClassName
string
fullWidth
boolfalse

If true, the button will take up the full width of its container.

href
string

The URL to link to when the button is clicked. If defined, an a element will be used as the root node.

mini
boolfalse

If true, and variant is 'fab', will use mini floating action button styling.

size
'small' | 'medium' | 'large''medium'

The size of the button. small is equivalent to the dense button styling.

type
string'button'
variant
custom'text'

The variant to use. WARNING: flat and raised are deprecated. Instead use text and contained respectively. fab and extendedFab are deprecated. Instead use <Fab> and <Fab variant="extended">