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.

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