43 Pro components and page blocks

Get Pro

Tooltip

New

Preview

Customize

Top
Offset8px
Delay250ms

Usage

import { Tooltip } from "@/components/uibrik/tooltip/tooltip";

<Tooltip content={content}>…</Tooltip>

Installation

npx shadcn@latest add https://uibrik.com/r/tooltip.json
Adds the files to components/uibrik/tooltip and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/tooltip.

Props

Tooltip
side
Type "top" | "bottom" | "left" | "right"
"top"
Preferred side. Flips when there isn't room.
offset
Type number
8
Gap between trigger and tooltip.
delay
Type number
250
Hover time before the first tooltip shows. Set on TooltipGroup when grouped.
childrenrequired
Type ReactElement
–
The trigger, usually a button.
contentrequired
Type ReactNode
–
What the tooltip says.
shortcut
Type string
–
A keyboard shortcut shown after the content, e.g. ⌘B.
className
Type string
–
Classes for the tooltip.
<TooltipGroup delay skipDelay>
Type component
–
Wrap a toolbar so that once one tooltip is open, neighbours open instantly. skipDelay (default 300ms) is how long that lasts after one closes.