Color Slider
Adjust a hue along the color spectrum.
0° to 359°
HTML
<div class="rl-scope" data-rl-scope>
<div class="rl-field">
<label class="rl-label" for="demo-hue">Hue</label>
<input class="rl-slider rl-color-slider" id="demo-hue" name="hue"
type="range" min="0" max="359" step="1" value="255" aria-describedby="demo-hue-help">
<p class="rl-description" id="demo-hue-help">0° to 359°</p>
</div>
</div>The submitted value is the hue. Combine it with saturation and lightness in your app.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>