@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.
8 lines • 461 B
TypeScript
import * as React from 'react';
import type { PopoverStore } from "../store/PopoverStore.js";
export interface PopoverRootContext<Payload = unknown> {
store: 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;