import type { JSX, ValidComponent } from "@solidjs/web"; import type { BaseUIComponentProps } from "../../internals/types.js"; import { type SliderRootState } from "../slider-root-context.js"; export type SliderLabelState = SliderRootState; export interface SliderLabelProps extends Omit, "id"> { /** Tag/component to render. Defaults to `"div"`. */ as?: ValidComponent; } /** * Accessible label automatically associated with the slider root (via * `aria-labelledby`) and thumb inputs (via the labelable provider). Renders * a `
` (or `as` override). * * Registers its id twice — once on the root's label id setter (so the root's * `aria-labelledby` picks it up in the `resolveAriaLabelledBy` chain), and * once into the labelable provider (so nested thumb ``s discover it * through `useAriaLabelledBy`). Matches React's double-registration setup. * * Clicking the label focuses the lone thumb's `` when the * slider is not a range (there is exactly one `input[type="range"]` inside * `controlRef`). For range sliders this is intentionally a no-op — there's no * single correct focus target. Matches React `SliderLabel.tsx:29-49`. * * §1 wave 3: replaces `renderElement` with `dynamic(() => props.as ?? "div")`. */ export declare function SliderLabel(props: SliderLabelProps): JSX.Element; export declare namespace SliderLabel { type State = SliderLabelState; type Props = SliderLabelProps; } //# sourceMappingURL=slider-label.d.ts.map