UNPKG

@buun_group/brutalist-ui

Version:
26 lines (25 loc) 902 B
/** * @module Slider * @description A range slider component for selecting values from a continuous range. Supports keyboard navigation and ARIA attributes. */ import React, { InputHTMLAttributes, CSSProperties } from 'react'; export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> { size?: 'sm' | 'md' | 'lg'; orientation?: 'horizontal' | 'vertical'; showValue?: boolean; marks?: number[] | { value: number; label?: string; }[]; min?: number; max?: number; step?: number; disabled?: boolean; className?: string; /** Custom CSS styles (supports utility classes) */ style?: CSSProperties; trackClassName?: string; thumbClassName?: string; valueClassName?: string; } export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;