feat: migrate public ColorSlider with docs and tests
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user