@cerberus-design/react
Version:
The Cerberus Design React component library.
23 lines (22 loc) • 713 B
TypeScript
import { ReactNode } from 'react';
import { TooltipRootProps } from './primitives';
/**
* This module contains the Tooltip component.
* @module Tooltip
*/
export interface TooltipProps extends Omit<TooltipRootProps, 'content'> {
/**
* The text content to display in the tooltip.
*/
content: ReactNode;
}
/**
* The Tooltip component is used to provide additional information about an element when it is hovered over.
* @definition [Tooltip docs](https://cerberus.digitalu.design/react/tooltip)
* @example
* ```tsx
* <Tooltip content="This is a tooltip">
* <Information />
* </Tooltip>
*/
export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;