soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
34 lines (33 loc) • 1.06 kB
TypeScript
/// <reference types="react" />
import './slider.scss';
/**
* TODO: Two handles is not implemented yet!
* @specs https://m3.material.io/components/sliders/specs
*/
export declare const Slider: import("react").ForwardRefExoticComponent<{
value?: number | undefined;
onChange?: ((value: number) => void) | undefined;
/**
* For uncontrolled
*/
defaultValue?: number | undefined;
disabled?: boolean | undefined;
steps?: number | undefined;
/**
* @default 0
*/
min?: number | undefined;
/**
* @default 1
*/
max?: number | undefined;
/**
* @default horizon
*/
direction?: "horizontal" | "vertical" | undefined;
/**
* Customize the label, by default show the value
*/
label?: React.ReactNode;
hideLabel?: boolean | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "disabled" | "label" | "max" | "min" | "value" | "defaultValue" | "onChange" | "direction" | "steps" | "hideLabel"> & import("react").RefAttributes<HTMLDivElement>>;