@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
23 lines (22 loc) • 543 B
TypeScript
import { FC } from 'react';
import { Props } from './Tooltip.types';
/**
* A tooltip component that shows on hover.
* Built on Radix UI for accessible, well-positioned tooltips.
*
* @example
* ```tsx
* <Tooltip content="Click to save">
* <Button>Save</Button>
* </Tooltip>
*
* <Tooltip content="More information" side="bottom">
* <InfoIcon />
* </Tooltip>
*
* <Tooltip content="Danger!" bgClassName="bg-red-500">
* <Button variant="danger">Delete</Button>
* </Tooltip>
* ```
*/
export declare const Tooltip: FC<Props>;