feat: migrate public ColorSlider with docs and tests

This commit is contained in:
maoyingjie
2026-10-27 09:16:32 +08:00
parent e487bcc8ec
commit ce6c43eb47
31 changed files with 3386 additions and 122 deletions
+23
View File
@@ -0,0 +1,23 @@
<script setup lang="ts">
import {
ColorSlider,
ColorSliderOutput,
ColorSliderThumb,
ColorSliderTrack,
Label,
} from "@heroui-vue/components";
</script>
<template>
<ColorSlider
channel="hue"
class="w-full max-w-xs"
default-value="hsl(0, 100%, 50%)"
>
<Label>色相</Label>
<ColorSliderOutput />
<ColorSliderTrack>
<ColorSliderThumb />
</ColorSliderTrack>
</ColorSlider>
</template>