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.

38 lines 1.25 kB
import * as React from 'react'; import type { BaseUIComponentProps } from "../../internals/types.js"; import type { Align, Side } from "../../utils/useAnchorPositioning.js"; import type { TransitionStatus } from "../../internals/useTransitionStatus.js"; /** * A container for the tooltip contents. * Renders a `<div>` element. * * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip) */ export declare const TooltipPopup: React.ForwardRefExoticComponent<Omit<TooltipPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>; export interface TooltipPopupState { /** * Whether the tooltip is currently open. */ open: boolean; /** * The side of the anchor the component is placed on. */ side: Side; /** * The alignment of the component relative to the anchor. */ align: Align; /** * Whether transitions should be skipped. */ instant: 'delay' | 'focus' | 'dismiss' | undefined; /** * The transition status of the component. */ transitionStatus: TransitionStatus; } export interface TooltipPopupProps extends BaseUIComponentProps<'div', TooltipPopupState> {} export declare namespace TooltipPopup { type State = TooltipPopupState; type Props = TooltipPopupProps; }