Popover bubble attached to a host, with host-relative direction classes, visual variants, and theme colors.
.bubble on a container. Direction classes describe where the bubble sits relative to its host (the trigger it is attached to); the arrow always points back at the host.bubble-outline-primary over bubble-outline bubble-primary — smaller CSS output.--bubble-border-radius on the element.bubble-scale / bubble-scale-* / bubble-full / bubble-fullscreen; numeric widths via bubble-64 or bubble-[24rem].Default bubble (top placement, bottom arrow)
Rounded bubble (12px)
Detailed content inside the bubble.
Direction is relative to the host (the trigger the bubble is attached to).
bubble-top places the bubble above the host with the arrow at its bottom edge;
bubble-bottom places it below the host with the arrow at its top edge;
bubble-start / bubble-end place it at the host inline-start / inline-end
(left / right in LTR).
Top
Top-center
Top-start
Top-end
Bottom
Bottom-center
Bottom-start
Bottom-end
Start
Start-center
Start-top
Start-bottom
End
End-center
End-top
End-bottom
Absolute centered, no arrow
Size utilities only override the bubble width (and height for fullscreen); combine them with any direction, variant, or color class.
.bubble-scale / .bubble-scale-*bubble-scale (1x)
bubble-scale-2 (2x)
bubble-scale-3 (3x)
bubble-scale-[1.5]
.bubble-* (spacing / arbitrary length)bubble-48 (12rem)
bubble-[20rem]
.bubble-fullbubble-full
Preview constrains --bubble-width-max to the demo column; the real value is calc(100dvw - var(--default-full-gap)*2).
.bubble-fullscreenbubble-fullscreen
Preview constrains both max variables; the real values are 100dvw / 100dvh minus the safe gaps. Positioning is unchanged — pair it with bubble-center or your own popover placement.
Default
.bubble-outline) — high contrastOutline
.bubble-solid) — dark fillSolid
.bubble-subtle) — borderless tintSubtle
Primary
Secondary
Tertiary
Success
Error
Info
Warning
Highlight
Ink
Title
Description
Caption
Disabled
.bubble-muted-*) — light borderPrimary
Success
Error
.bubble-outline-*)Primary
Success
Error
.bubble-solid-*)Primary
Success
Error
.bubble-subtle-*) — borderless tintPrimary
Success
Error
Multiple color formats are supported:
*-error, *-error-hover*-indigo-500*-[#ff0000]*-[red], *-[green]green-500
green-800
red-500
red-800
red-500
red-100
blue-500
blue-100
[blue]
[#ff0000]
This is a tooltip
Operation completed
Operation failed
Password expires soon