UPD: Custom slider tracks

This commit is contained in:
Robert Kossessa
2024-02-02 19:32:13 +01:00
parent 9d97a88f67
commit 368906d9f7

View File

@@ -38,13 +38,13 @@ const emits = defineEmits(['update:modelValue', 'valueCommit'])
v-bind="{ ...props, ...useEmitAsProps(emits) }"
>
<SliderTrack
class="relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20"
class="flex h-2 w-full grow overflow-hidden rounded-full bg-primary/20 items-center"
>
<SliderRange class="absolute h-full bg-primary" />
<SliderRange class="absolute h-1.5 bg-primary rounded-full" />
</SliderTrack>
<SliderThumb
class="flex h-6 w-8 rounded-[8px] border hover:bg-zinc-200 border-zinc-100 bg-zinc-300 transition-colors focus-visible:outline-none focus-visible:ring-1 cursor-pointer focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 text-zinc-600 justify-center items-center"
style="box-shadow: 0 0 15px 0 black">
style="box-shadow: 0 0 15px 0 rgba(0,0,0,0.5)">
<MoreHorizontal class="h-full" />
</SliderThumb>
</SliderRoot>