Help Icon provides contextual guidance and explanations without cluttering the interface. It reveals helpful information on demand through a tooltip.
Loading demo: help-icon-real-world
npx sdaia-ui@latest add helpicon
import { HelpIcon } from '@/components/ui/HelpIcon';<HelpIcon title="Tooltip title" description="Max width of tooltips is 240px - text will wrap automatically" />The default help icon with placement={top}.
Loading demo: help-icon-default
Help icon with placement={bottom}.
Loading demo: help-icon-bottom
Help icon with placement={right}.
Loading demo: help-icon-right
Props for the HelpIcon component.
Prop | Type | Default | Required |
|---|---|---|---|
placement | 'top' | 'bottom' | 'left' | 'right' | 'top' | optional |
align | 'start' | 'center' | 'end' | 'start' | optional |
open | boolean | - | optional |
onOpenChange | (open: boolean) => void | - | optional |
title | ReactNode | - | optional |
description | ReactNode | - | optional |
rtl | boolean | false | optional |
labels | Partial<HelpIconLabels> | English strings | 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) | The tooltip opens next to the icon. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Below 768px the tooltip is centered on the screen so it is never cut off. |