The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
v0.2.47Beta

Search

Tooltip

Source

A floating element that displays additional information when hovering over or focusing on an element.

Usage

Import the Tooltip component from @bun-ui/react and use it in your project:

import { Tooltip } from "@bun-ui/react"
<Tooltip content="This is a tooltip">
  <button>Hover me</button>
</Tooltip>

Examples

Placement

The tooltip can be positioned in different places relative to the trigger element.

Delay

Control the timing of when the tooltip appears and disappears.

Click Only

Show the tooltip only when clicking the trigger element instead of hovering.

Offset

Adjust the distance between the tooltip and the trigger element.

Custom Content

The tooltip content can be customized with any React component.