3.0.48 • Published 3 years ago
@kano/kbc-button
Licence
ISC
Version
3.0.48
Deps
6
Size
9 kB
Vulns
0
Weekly
0
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 |