button
v1.1.5arrow_drop_downv1.1.5
v1.1.4
v1.1.1
v1.1.0
STATUS
Passing
DOWNLOADS
6
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
5 KB
1 contributor
Like
Install button as a package?
Copied
npm i @bit/ashwani18.lss-shared-ui-components.button
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Properties
Name | Type | Default value | Description |
---|---|---|---|
type | string | 'button' | declares type property of button element (eg. ‘button’) |
width | number | adds inline width for Button. | |
children (required) | node | The content of the Button. This can be any valid HTML or react components. | |
className | string | 'button-primary' | one of button-primary (default), button-secondary, button-tertiary, button-anchor, button-warning and any other classes you would like to use. |
id | string | adds id attribute on Button. | |
icon | function | node | declares an associated icon: this can be a React Component or an instance of a React Component. | |
iconPlacement | 'left' | 'right' | declares placement of the icon (eg. ‘left’ or ‘right’). | |
onMouseLeave | function | () => {} | |
disabled | bool | declares a disabled Button |