import React from 'react'; const CustomSlider = ({ label, value, min = 0, max = 100, step = 1, onChange, className = '', variant = 'default', // 'default' | 'brutalist' | 'cyberpunk' }) => { const percentage = ((value - min) / (max - min)) * 100; if (variant === 'cyberpunk') { return (
{label && (
{value}
)}
{/* Track Background */}
{/* Filled Track */}
{/* Input */} onChange(Number(e.target.value))} className="absolute w-full h-full opacity-0 cursor-pointer z-10" /> {/* Custom Thumb */}
); } return (
{label && (
{value}
)}
{/* Track Background */}
{/* Filled Track */}
{/* Input */} onChange(Number(e.target.value))} className="absolute w-full h-full opacity-0 cursor-pointer z-10" /> {/* Custom Thumb (Visual only, follows percentage) */}
{/* Inner dot */}
); }; export default CustomSlider;