Tooltip

Short labels for icon buttons and clipped text: shown after a brief delay on hover or keyboard focus, at once if another tooltip just closed, and on tap for touch users. A fixed portal keeps overflow from cutting it off.

Preview

Tooltip preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/tooltip
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

content
ReactNode
—
side?
"bottom" | "left" | "right" | "top"
top
delay?
number

Delay before showing (ms). Default 120.

120
className?
string
—
wrapperClassName?
string

Classes for the outer wrapper span. Use to fix baseline / fill parent.

—

Updated