Files
heroui-vue/apps/docs/demos/color-slider-render-function.vue

27 lines
494 B
Vue

<script setup lang="ts">
import {
ColorSlider,
ColorSliderOutput,
ColorSliderThumb,
ColorSliderTrack,
Label,
} from "@heroui-vue/components";
</script>
<template>
<ColorSlider
as-child
channel="hue"
class="w-full max-w-xs"
default-value="hsl(0, 100%, 50%)"
>
<div data-custom="foo">
<Label>色相</Label>
<ColorSliderOutput />
<ColorSliderTrack>
<ColorSliderThumb />
</ColorSliderTrack>
</div>
</ColorSlider>
</template>