File size: 579 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Gridicon } from '@automattic/components';
import { PureComponent } from 'react';
import FormRange from '../';

export default class extends PureComponent {
	static displayName = 'Ranges';

	state = {
		rangeValue: 24,
	};

	onChange = ( event ) => {
		this.setState( {
			rangeValue: event.target.value,
		} );
	};

	render() {
		return (
			<FormRange
				minContent={ <Gridicon icon="minus-small" /> }
				maxContent={ <Gridicon icon="plus-small" /> }
				max="100"
				value={ this.state.rangeValue }
				onChange={ this.onChange }
				showValueLabel
			/>
		);
	}
}