button
v1.0.1arrow_drop_downv1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
21
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
17 KB
1 contributor
Like
Install button as a package?
Copied
npm i @bit/ishayyemini.design-system-demo.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
modifieddraft
chevron_left
chevron_right
Properties
Name | Type | Default value | Description |
---|---|---|---|
text (required) | string | Button’s content. | |
onClick | function | Function to run when clicking on the button. | |
background | string | 'lightyellow' | Color of button’s background. |
color | string | 'red' | Color of button’s text. |
Test Summary
renders with blue text and a "Red" label | Pass |
calls function when clicked on | Pass |