Skip to main content
Version: 1.0.3

Tooltip

The Tooltip component provides additional information when users hover over or focus on an element. Built with Radix UI and Framer Motion, it supports various animations, themes, and appearance styles.

Installation

ignix add component tooltip

Usage

import { Tooltip } from '@ignix-ui/tooltip';

function MyComponent() {
return (
<Tooltip content="Additional information">
<button>Hover me</button>
</Tooltip>
);
}

Props

PropTypeDefaultDescription
contentReactNode-The tooltip content that accepts a string or any React element
childrenReactNode-The trigger element the tooltip is anchored to
animation"fade" | "scale" | "slideUp" | "slideDown" | "slideLeft" | "slideRight""fade"Entrance and exit animation style
bg"dark" | "light" | "slate" | "default" | "transparent" | "glass" | "gradient" | "primary""dark"Background colour theme of the tooltip bubble
rounded"sm" | "md" | "full""sm"Border radius of the tooltip bubble
classNamestring-Additional CSS classes applied to the tooltip bubble