HSL Sliders
Slider controls for the hue, saturation, and lightness color channels.
import { HueSlider, SaturationSlider, LightnessSlider } from '@hueycolor/vue'<script setup>import { ref } from 'vue'import { HueyRoot, HueSlider, SaturationSlider, LightnessSlider, hueyColor } from '@hueycolor/vue'
const color = ref(hueyColor('#1A3263'))</script>
<template> <HueyRoot v-model="color"> <HueSlider /> <SaturationSlider /> <LightnessSlider /> </HueyRoot></template>import { HueSlider, SaturationSlider, LightnessSlider } from '@hueycolor/svelte'<script>import { HueyRoot, HueSlider, SaturationSlider, LightnessSlider, hueyColor } from '@hueycolor/svelte'
let color = $state(hueyColor('#1A3263'))</script>
<HueyRoot bind:color> <HueSlider /> <SaturationSlider /> <LightnessSlider /></HueyRoot>Each slider component shares these props:
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | The orientation of the slider track. |
aria-label | string | — | Accessible label for the slider. |
Value Ranges
Section titled “Value Ranges”- HueSlider: 0-360 degrees
- SaturationSlider: 0-100%
- LightnessSlider: 0-100%