Tooltip with warning badge
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A triangle alert icon button whose hint warns, behind a matching glyph, that the action cannot be undone
When to use
- Short labels for buttons and icon only toolbar actions, with a keyboard shortcut where one exists
- Help text on an info icon, a warning, a verified mark, a locked feature or a disabled button
- Compact summaries behind a trigger, such as service status, notifications, file details or a person
When not to use
- A destructive step that needs a confirmation before it runs: use the Alert Dialog component
- Content with links or buttons that keyboard users must be able to reach: use the Popover component
- A rich profile or page preview with a large photo, bio and dates: use the Hover Card component
- A status or count that stays readable without pointing at anything: use the Badge component
Agent notes
Badgeis imported but never rendered, so lint flags an unused import; remove it when you copy the file- Outside a
TooltipProviderthe baseTooltipopens after 600ms and inside one at once; the radixTooltipthrows without one TooltipTriggerrenders abuttonof its own, so aButtonnested in it withoutrenderor radixasChildmakes a button in a buttonTooltipContentis portaled to the end of the body with no focus guards, so a link or button in it is not next in Tab order after its trigger
https://reui.io/components/tooltip/c-tooltip-9.mdget_example("c-tooltip-9")npx shadcn@latest add @reui/c-tooltip-9About Shadcn Tooltip Warning
Tooltip with warning badge. Built by composing Badge, Button, Tooltip. A free, open source shadcn tooltip example you can install with npx shadcn@latest add @reui/c-tooltip-9 and edit as your own code.
What You Can Build With Shadcn Tooltip Warning
- Composes Badge, Button, Tooltip, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-tooltip-9
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Tooltip Examples
- Basic Basic tooltip.
- Placements Tooltips opening from different sides.
- Icon Trigger Tooltip with icon trigger.
- Keyboard Shortcut Tooltip with keyboard shortcut.
- Bell With Count Tooltip on notification bell with badge count
- Status Badges Tooltip with status badge
- Verified Domain Tooltip with icon and description
- Toolbar Actions Toolbar with tooltip actions
- Upgrade Prompt Tooltip with feature badge and upgrade link
- Avatar Role Badge Tooltip with avatar and role badge
- Disabled Button Tooltip on disabled button with wrapper
- Online Status Tooltip with online status indicator
Related Shadcn Component Categories
Open-source shadcn tree components for file explorers, nested navigation, and hierarchical data.
Open-source shadcn accordion components for FAQ layouts, settings panels, and help sections.
Open-source shadcn alert components for status messages, warning banners, and destructive notices.
Open-source shadcn alert dialog components for delete confirmations, destructive actions, and critical decisions.
Open-source shadcn aspect ratio components for responsive media, image galleries, and video previews.
Open-source shadcn attachment components for chat composers, upload states, and file previews.
Frequently Asked Questions
When should I use Shadcn Tooltip Warning?
Use it for a triangle alert icon button whose hint warns, behind a matching glyph, that the action cannot be undone.
Shadcn Tooltip as a whole fits:
- Short labels for buttons and icon only toolbar actions, with a keyboard shortcut where one exists
- Help text on an info icon, a warning, a verified mark, a locked feature or a disabled button
- Compact summaries behind a trigger, such as service status, notifications, file details or a person
For a destructive step that needs a confirmation before it runs, use the Alert Dialog component. For content with links or buttons that keyboard users must be able to reach, use the Popover component. For a rich profile or page preview with a large photo, bio and dates, use the Hover Card component. For a status or count that stays readable without pointing at anything, use the Badge component.
How do I install Shadcn Tooltip Warning?
Is Shadcn Tooltip Warning free to use?
Which components does Shadcn Tooltip Warning use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.