Skip to content
Huey
GitHub

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>

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.
  • HueSlider: 0-360 degrees
  • SaturationSlider: 0-100%
  • LightnessSlider: 0-100%