Slider - additional props

This commit is contained in:
Jeremy Gallant
2025-04-23 16:41:20 +02:00
parent ef37397969
commit 03e516e568
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ export function Slider({
trackClassName,
rangeClassName,
thumbClassName,
...props
}: SliderProps) {
const [internalValue, setInternalValue] = useState<number[]>(value);
const isControlled = value !== undefined;
@@ -56,7 +57,7 @@ export function Slider({
disabled={disabled}
onValueChange={handleValueChange}
onValueCommit={handleValueCommit}
aria-label="Slider"
{...props}
>
<SliderPrimitive.Track
className={cn(