prop name | isRequired | type |
---|---|---|
decrementElement | func |
|
disabled | bool |
|
incrementElement | func |
|
max | number |
|
min | number |
|
name | ✔️ | string |
onChange | ✔️ | func |
prefix | string |
|
step | number |
|
suffix | string |
|
value | number |
type: func
defaultValue:
function() {
return (
<button className='count-button' >
<i className='icon-remove' />
</button>
);
}
type: bool
defaultValue: false
type: func
defaultValue:
function() {
return (
<button className='count-button' >
<i className='icon-add' />
</button>
);
}
type: number
defaultValue: Number.POSITIVE_INFINITY
type: number
defaultValue: Number.NEGATIVE_INFINITY
type: string
type: func
type: string
type: number
defaultValue: 1
type: string
type: number
defaultValue: 0