@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.
18 lines • 598 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
/**
* An element to attach the tooltip to.
* Renders a `<button>` element.
*
* Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
*/
export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipTrigger.Props & React.RefAttributes<any>>;
export declare namespace TooltipTrigger {
interface State {
/**
* Whether the tooltip is currently open.
*/
open: boolean;
}
interface Props extends BaseUIComponentProps<'button', State> {}
}