@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
26 lines (25 loc) • 1.11 kB
TypeScript
import { TransitionOverride } from '../../Transition';
export interface ThumbProps extends Omit<React.ComponentProps<'div'>, 'value'> {
max: number;
min: number;
value: number;
position: number;
dragging: boolean;
label: React.ReactNode;
onKeyDownCapture?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
onMouseDown?: (event: any) => void;
labelTransitionProps: TransitionOverride | undefined;
labelAlwaysOn: boolean | undefined;
thumbLabel: string | undefined;
showLabelOnHover: boolean | undefined;
isHovered?: boolean;
children?: React.ReactNode;
disabled: boolean | undefined;
orientation?: 'horizontal' | 'vertical';
className?: string;
style?: React.CSSProperties;
}
export declare function Thumb({ max, min, value, position, label, dragging, onMouseDown, onKeyDownCapture, labelTransitionProps, labelAlwaysOn, thumbLabel, onFocus, onBlur, showLabelOnHover, isHovered, children, disabled, orientation, ref, }: ThumbProps): import("react/jsx-runtime").JSX.Element;
export declare namespace Thumb {
var displayName: string;
}