loc
47
comments
57%
Smart PropTypes
Button with react PropTypes
Name | Description | Default |
---|---|---|
disabled | Boolean indicating whether the button should render as disabled boolean | false |
children | button label string | default |
onClick | onClick handler function | () => {} |
style | Custom styles object | {} |
backgroundColor | Background color string | #fefefe |
color | Text color, default black string | black |
type | Button type buttonresetsubmit | button |
padding | Numeric field type number | 5 |
package | imports | peer |
---|---|---|
polished | lighten | |
prop-types | PropTypes | |
react | React |