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.

6 lines 445 B
import * as React from 'react'; import type { PopoverStore } from "../store/PopoverStore.js"; export type PopoverRootContext<Payload = unknown> = PopoverStore<Payload>; export declare const PopoverRootContext: React.Context<PopoverRootContext<unknown> | undefined>; export declare function usePopoverRootContext(optional?: false): PopoverRootContext; export declare function usePopoverRootContext(optional: true): PopoverRootContext | undefined;