UNPKG

@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.

19 lines 1.17 kB
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<NumberFieldScrubAreaCursorProps & React.RefAttributes<HTMLSpanElement>>; export interface NumberFieldScrubAreaCursorState extends NumberFieldRoot.State {} export interface NumberFieldScrubAreaCursorProps extends BaseUIComponentProps<'span', NumberFieldScrubAreaCursor.State> {} export declare namespace NumberFieldScrubAreaCursor { type State = NumberFieldScrubAreaCursorState; type Props = NumberFieldScrubAreaCursorProps; }