infinity-ui-elements
Version:
A React TypeScript component library with Tailwind CSS design system
41 lines • 1.19 kB
TypeScript
import * as React from "react";
declare const tooltipVariants: (props?: ({
isVisible?: boolean | null | undefined;
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
export interface TooltipProps {
/**
* The trigger element that the tooltip will attach to
*/
children: React.ReactElement;
/**
* Heading text for the tooltip
*/
heading?: string;
/**
* Description text for the tooltip
*/
description: string;
/**
* Placement of the tooltip relative to the trigger
*/
placement?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end";
/**
* Whether to show the arrow/anchor
*/
showArrow?: boolean;
/**
* Custom class name for the tooltip container
*/
className?: string;
/**
* Delay before showing tooltip (in milliseconds)
*/
delay?: number;
/**
* Whether the tooltip is disabled
*/
disabled?: boolean;
}
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
export { Tooltip, tooltipVariants };
//# sourceMappingURL=Tooltip.d.ts.map