@clubmed/trident-ui
Version:
Shared ClubMed React UI components
41 lines (40 loc) • 838 B
TypeScript
import { InputHTMLAttributes } from 'react';
interface RangeProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
/**
* Aria label
* @default 'Range'
* */
ariaLabel?: string;
/**
* Additional class names
* */
className?: string;
/**
* Data test id
* */
dataTestId?: string;
/**
* Single cursor mode
* @default false
* */
singleCursorMode?: boolean;
/**
* Min value
* @default 0
* */
min?: number;
/**
* On change
* */
onChange?: (name: string, value: number[]) => void;
/**
* Options
* @default []
* */
options: {
value: number;
label: string;
}[];
}
export declare const Range: (props: RangeProps) => import("react/jsx-runtime").JSX.Element;
export {};