side- Type
"top" | "bottom" | "left" | "right"- Default
"top"- Description
- Preferred side to render the tooltip.
Search for a command to run...
Components / Overlay
குறிப்பு நுனி
Tooltips show a short label when the user hovers or focuses an element. Use them to clarify icon buttons, abbreviations, and truncated text.
குறிப்பு நுனிகள் பயனர் ஒரு கூறின் மீது நகர்த்தும் அல்லது கவனம் செலுத்தும்போது குறுகிய தலைப்பை காட்டுகின்றன.
2 parts documented for implementation and review.
<button>Trigger element showing tooltip on hover and keyboard focus. Can wrap any interactive element via asChild. Appears after a short delay (default 700ms). Long-press on touch devices.
<div>Small floating label with dark background (bg-primary) and white text. Text-xs with px-3 py-1.5. Smart positioned to avoid viewport overflow. Animates with fade-in and slide.
side"top" | "bottom" | "left" | "right""top"sideOffsetnumber4delayDurationnumber300| Prop | Type | Default | Description |
|---|---|---|---|
side | "top" | "bottom" | "left" | "right" | "top" | Preferred side to render the tooltip. |
sideOffset | number | 4 | Distance in px from trigger to tooltip. |
delayDuration | number | 300 | ms before tooltip appears on hover. |
aria-label matching the tooltip text.font-tamil inside TooltipContent.Wrapping icon buttons with a Tooltip gives sighted non-hover users and screen readers a meaningful label.
சின்னம் மட்டும் உள்ள பொத்தான்களை Tooltip மூலம் சுற்றி திரை வாசகர்களுக்கும் பயனர்களுக்கும் பொருளை தெரிவிக்கவும்.
Tooltips are invisible on touch devices — essential guidance must always be visible in the main UI.
Tooltip தொடு திரைகளில் தெரியாது — அத்தியாவசிய தகவல் எப்போதும் பக்கத்தில் தெரியும்படி வைக்கவும்.
Short tooltip labels (under 80 chars) are readable at a glance; longer explanations belong in a Popover.
குறுகிய Tooltip உரை ஒரு பார்வையில் படிக்கலாம் — நீண்ட விளக்கங்களுக்கு Popover பயன்படுத்தவும்.
Users on mobile cannot hover disabled elements — if you need to explain why something is disabled, show inline text instead.
மொபைல் பயனர்கள் முடக்கப்பட்ட கூறுகளை hover செய்ய முடியாது — ஏன் முடக்கப்பட்டது என்று வரியில் காட்டவும்.