logo here
created:1/23/2021
,
updated:1/23/2021

React Props Button

custom-esm-pages
0.0.1

Button with react PropTypes

import { PropsButton } from 'custom-esm-pages';

Color

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

'button''reset''submit'
'button'
padding

Numeric field type

number
5

package
imports
peer
polished
^4.0.5
lighten
prop-types
^15.7.2
PropTypes
react
^17.0.1
React

Stories

Main

Copyright © 2021 by @component-controls