prop name | isRequired | type |
---|---|---|
attributes | object |
|
disabled | bool |
|
max | number |
|
min | number |
|
name | ✔️ | string |
onChange | func |
|
onDragEnd | func |
|
onDragStart | func |
|
orientation | `enum('horizontal' | |
rangeTemplate | func |
|
readOnly | bool |
|
showSteps | bool |
|
step | number |
|
toolTipTemplate | func |
|
type | `enum('value' | |
value | `union(array |
type: object
defaultValue: {}
type: bool
defaultValue: false
type: number
defaultValue: 20
type: number
defaultValue: 0
type: string
type: func
type: func
defaultValue: noop
type: func
defaultValue: noop
type: enum('horizontal'|'vertical')
defaultValue: 'horizontal'
type: func
defaultValue:
function(min, max) {
return (
<div className='slider-range' >
<div className='slider-range-min' >{min}</div>
<div className='slider-range-max' >{max}</div>
</div>
);
}
type: bool
defaultValue: false
type: bool
defaultValue: false
type: number
defaultValue: 1
type: func
defaultValue:
function(value) {
return value;
}
type: enum('value'|'range')
defaultValue: 'value'
type: union(array|number)
defaultValue: [5, 10]