@base-ui-components/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.
17 lines • 983 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
import type { NumberFieldRoot } from "../root/NumberFieldRoot.js";
/**
* A custom element to display instead of the native cursor while using the scrub area.
* Renders a `<span>` element.
*
* This component uses the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API), which may prompt the browser to display a related notification. It is disabled
* in Safari to avoid a layout shift that this notification causes there.
*
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
*/
export declare const NumberFieldScrubAreaCursor: React.ForwardRefExoticComponent<NumberFieldScrubAreaCursor.Props & React.RefAttributes<HTMLSpanElement>>;
export declare namespace NumberFieldScrubAreaCursor {
interface State extends NumberFieldRoot.State {}
interface Props extends BaseUIComponentProps<'span', State> {}
}