UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

16 lines 755 B
import * as React from 'react'; import type { BaseUIComponentProps } from "../../internals/types.js"; import type { SliderRoot } from "../root/SliderRoot.js"; /** * An accessible label that is automatically associated with the slider thumbs. * Renders a `<div>` element. * * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider) */ export declare const SliderLabel: React.ForwardRefExoticComponent<Omit<SliderLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>; export type SliderLabelState = SliderRoot.State; export interface SliderLabelProps extends Omit<BaseUIComponentProps<'div', SliderLabel.State>, 'id'> {} export declare namespace SliderLabel { type State = SliderLabelState; type Props = SliderLabelProps; }