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.

21 lines (20 loc) 647 B
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) */ declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipTrigger.Props, "ref"> & React.RefAttributes<any>>; declare namespace TooltipTrigger { interface State { /** * Whether the tooltip is currently open. */ open: boolean; } interface Props extends BaseUIComponentProps<any, State> { } } export { TooltipTrigger };