Tooltip

A lightweight tooltip with 6 visual variants, optional arrow, configurable placement and delay.

Import

import { Tooltip } from "@igorao79/uivix";

Playground

200ms

All Variants

All Sides

Usage

<Tooltip content="Save changes" side="bottom" variant="gradient" arrow>
  <Button>Save</Button>
</Tooltip>

Props

PropTypeDefaultDescription
contentReactNode-Tooltip content to display
variant"default" | "dark" | "light" | "gradient" | "glass" | "outlined""default"Visual style variant of the tooltip
side"top" | "bottom" | "left" | "right""top"Side of the trigger to show the tooltip
arrowbooleantrueWhether to show an arrow pointing to the trigger
delaynumber200Delay in ms before showing the tooltip
childrenReactNode-Trigger element
classNamestring-Additional CSS classes for the tooltip