Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/ui-kit. 🦊 fox ui, svelte 5 and tailwind 4 flo-bit.dev/ui-kit
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041<script lang="ts"> import { Slider as SliderPrimitive, type WithoutChildrenOrChild } from 'bits-ui'; import { Slider } from '.'; import NumberFlow from '@number-flow/svelte';
let { ref = $bindable(null), value = $bindable(), orientation = 'horizontal', class: className, tabindex = undefined, type = 'single', min = 0, max = 100, ...props }: WithoutChildrenOrChild<SliderPrimitive.RootProps> = $props();</script>
<div class="flex items-center gap-6"> <Slider bind:value bind:ref {orientation} class={className} {tabindex} {type} {min} {max} {...props} />
<NumberFlow {value} locales="en-US" format={{ useGrouping: false }} aria-hidden="true" class="text-base-900 dark:text-base-100 pointer-events-none min-w-6 text-right text-lg font-semibold" willChange /></div>