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.

10 lines (9 loc) 382 B
import * as React from 'react'; /** * Returns the ref of a React element handling differences between React 19 and older versions. * It will throw runtime error if the element is not a valid React element. * * @param element React.ReactElement * @returns React.Ref<any> | null */ export declare function getReactElementRef(element: React.ReactElement): React.Ref<any> | null;