'use client' import { forwardRef, type InputHTMLAttributes } from 'react' import { cn } from '../../lib/cn' export type SliderProps = Omit, 'type'> & { value: number min?: number max?: number } /** * A native range input restyled against the track tokens. The filled portion * is painted with a gradient so the fill matches on every browser without a * second element to keep in sync. */ export const Slider = forwardRef(function Slider( { className, value, min = 0, max = 100, disabled, style, ...props }, ref, ) { const percent = max === min ? 0 : ((value - min) / (max - min)) * 100 return ( ) })