@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.
28 lines • 906 B
TypeScript
import * as React from 'react';
/**
* Provides a shared delay for multiple tooltips. The grouping logic ensures that
* once a tooltip becomes visible, the adjacent tooltips will be shown instantly.
*
* Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
*/
export declare const TooltipProvider: React.FC<TooltipProvider.Props>;
export interface TooltipProviderProps {
children?: React.ReactNode;
/**
* How long to wait before opening a tooltip. Specified in milliseconds.
*/
delay?: number;
/**
* How long to wait before closing a tooltip. Specified in milliseconds.
*/
closeDelay?: number;
/**
* Another tooltip will open instantly if the previous tooltip
* is closed within this timeout. Specified in milliseconds.
* @default 400
*/
timeout?: number;
}
export declare namespace TooltipProvider {
type Props = TooltipProviderProps;
}