A small informational popup appearing on hover, supporting beak placements (Top, Bottom, Left, Right, None) and On Color variants.
Loading demo: tooltip-real-world
npx sdaia-ui@latest add tooltip
import { Tooltip } from '@/components/ui/Tooltip';<Tooltip />Tooltip with type={brand}.
Loading demo: tooltip-brand
Tooltip with neutral colors.
Loading demo: tooltip-neutral
Tooltip with beak positioned top.
Loading demo: tooltip-beak-top
Tooltip with beak positioned left.
Loading demo: tooltip-beak-left
Tooltip with type brand and beak positioned left.
Loading demo: tooltip-brand-beak-bottom
Props for the Tooltip component.
Prop | Type | Default | Required |
|---|---|---|---|
type | 'neutral' | 'brand' | 'neutral' | optional |
beakPlacement | 'none' | 'top' | 'bottom' | 'left' | 'right' | 'none' | optional |
beakAlignment | 'start' | 'centre' | 'end' | 'start' | optional |
title | ReactNode | - | optional |
description | ReactNode | - | optional |
icon | ReactNode | boolean | - | optional |
media | ReactNode | - | optional |
primaryAction | TooltipAction | - | optional |
secondaryAction | TooltipAction | - | optional |
link | TooltipLinkAction | - | optional |
counting | ReactNode | - | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Sized by its text up to 320px wide; longer text wraps. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Never wider than the screen minus 32px. It keeps the chosen placement, so place triggers away from the screen edge. |