Skip to content
Theme Editor
⌘E
Background
L 0.5
C 0.2
H 250
Foreground
L 0.5
C 0.2
H 250
Primary
L 0.5
C 0.2
H 250
Primary FG
L 0.5
C 0.2
H 250
Secondary
L 0.5
C 0.2
H 250
Secondary FG
L 0.5
C 0.2
H 250
Accent
L 0.5
C 0.2
H 250
Accent FG
L 0.5
C 0.2
H 250
Card
L 0.5
C 0.2
H 250
Card FG
L 0.5
C 0.2
H 250
Popover
L 0.5
C 0.2
H 250
Popover FG
L 0.5
C 0.2
H 250
Muted
L 0.5
C 0.2
H 250
Muted FG
L 0.5
C 0.2
H 250
Border
L 0.5
C 0.2
H 250
Input
L 0.5
C 0.2
H 250
Ring
L 0.5
C 0.2
H 250
Destructive
L 0.5
C 0.2
H 250
Destructive FG
L 0.5
C 0.2
H 250
Chart 1
L 0.5
C 0.2
H 250
Chart 2
L 0.5
C 0.2
H 250
Chart 3
L 0.5
C 0.2
H 250
Chart 4
L 0.5
C 0.2
H 250
Chart 5
L 0.5
C 0.2
H 250

Tooltip

A small popup that appears when hovering over or focusing on an element.

Add to library

Terminal window
bunx bejamas add tooltip
---
import { Tooltip, TooltipTrigger, TooltipContent } from '@bejamas/ui/components/tooltip';
import { Button } from '@bejamas/ui/components/button';
---
<Tooltip>
<TooltipTrigger asChild>
<Button variant="outline">Hover</Button>
</TooltipTrigger>
<TooltipContent>
<p>Add to library</p>
</TooltipContent>
</Tooltip>

This tooltip appears after 1000ms

When a tooltip is shown, hovering over other tooltip triggers will show their tooltips immediately without delay. Try hovering over the first button, then quickly move to the others.

Bold (Ctrl+B)

Italic (Ctrl+I)

Underline (Ctrl+U)

Use the side prop to control which side the tooltip appears on.

Tooltip on top

Tooltip on right

Tooltip on bottom

Tooltip on left

Use the align prop to control how the tooltip aligns relative to the trigger.

Aligned to start

Aligned to center

Aligned to end

Aligned to start

Aligned to center

Aligned to end

This feature is currently unavailable