<range-input> (#171)

This commit is contained in:
Jake Archibald
2018-10-02 11:41:07 +01:00
committed by GitHub
parent 248676aa31
commit b25d1eaf86
7 changed files with 249 additions and 39 deletions

View File

@@ -50,9 +50,8 @@ export default class QuantizerOptions extends Component<Props, State> {
</label>
<label style={{ display: options.zx ? 'none' : '' }}>
Palette Colors:
<input
<range-input
name="maxNumColors"
type="range"
min="2"
max="256"
value={'' + options.maxNumColors}
@@ -61,9 +60,8 @@ export default class QuantizerOptions extends Component<Props, State> {
</label>
<label>
Dithering:
<input
<range-input
name="dither"
type="range"
min="0"
max="1"
step="0.01"