@kano/kbc-button
v3.0.48
Published
Button component
Downloads
18
Maintainers
Keywords
Readme
kbc-button
An react Button component, for Kano boilerplate apps.
Usage
Default usage
import KbcButton from '@kano/kbc-button';
const Component = (props) => {
return <KbcButton text="Press me!" />
}
### Available props
| Property | Options |
|----------------|--------------------------------------|
| text
| string
number
false
|
| type
| button
reset
submit
|
| color
| Any color from the allColors tokens |
| size
| small
base
large
|
| iconSize
| small
base
large
|
| weight
| bold
|
| outline
| true
false
|
| borderColor
| Any color from the allColors tokens |
| onClick
| function
|
| disabled
| true
false
|
| loading
| true
false
|
| shadow
| true
false
|
| icon
| One of KbcIcon
available icons |