@sikka/hawa
Version:
Modern UI Kit made with Tailwind
32 lines (28 loc) • 1.09 kB
text/typescript
import React from 'react';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
type PositionType = "top" | "bottom" | "right" | "left";
type TooltipTypes = {
/** Controls the open state of the tooltip. */
open?: any;
/** Specifies the side where the tooltip will appear. */
side?: PositionType;
/** Content to be displayed within the tooltip. */
content?: any;
/** Elements to which the tooltip is anchored. */
children?: any;
/** Sets the default open state of the tooltip. */
defaultOpen?: any;
/** Event handler for open state changes. */
onOpenChange?: any;
/** Duration of the delay before the tooltip appears. */
delayDuration?: any;
/** Size of the tooltip. */
size?: "default" | "small" | "large";
/** Disables the tooltip. */
disabled?: boolean;
triggerProps?: TooltipPrimitive.TooltipTriggerProps;
contentProps?: TooltipPrimitive.TooltipContentProps;
providerProps?: TooltipPrimitive.TooltipProps;
};
declare const Tooltip: React.FunctionComponent<TooltipTypes>;
export { Tooltip };