HueSlider

April 10, 2025 ยท View on GitHub

Props

PropTypeDefaultDescription
direction'horizontal' | 'vertical'"horizontal"Determines the layout orientation of the component.
modelValuenumber0The hue value. The value range is [0, 360].

Events

EventPayloadDescription
update:modelValuenumberEmitted when the hue value changes.

Usage Example

<script setup>
import { HueSlider } from 'vue-color';

const hue = defineModel();
</script>

<template>
  <HueSlider v-model="hue" />
</template>