@react-md/form
Version:
This package is for creating all the different form input types.
28 lines (27 loc) • 1.18 kB
TypeScript
import type { HTMLAttributes } from "react";
import type { SliderAddons, SliderLabelProps, SliderPresentation } from "./types";
/**
* @remarks \@since 2.5.0
*/
export interface SliderContainerProps extends HTMLAttributes<HTMLDivElement>, SliderLabelProps, SliderAddons, Pick<SliderPresentation, "vertical"> {
/**
* This is _really_ only required when the `label` prop is also provided, but
* since this component is only really used internally for the `Slider` and
* `RangeSlider`, it is required since they always pass one in.
*/
labelId: string;
/**
* Boolean if the `Slider` or `RangeSlider` are disabled so that the `label`
* can also be `disabled`.
*/
disabled?: boolean;
}
/**
* The `SliderContainer` component is mostly an internal component that is
* built-in to the `Slider` and `RangeSlider` components to add addons to the
* left or right of the `SliderTrack`. When vertical, it will add addons to the
* bottom or top instead.
*
* @remarks \@since 2.5.0
*/
export declare const SliderContainer: import("react").ForwardRefExoticComponent<SliderContainerProps & import("react").RefAttributes<HTMLDivElement>>;