Tooltip on disabled button with wrapper
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A disabled Delete Project button wrapped in a span trigger, so the reason it is locked still shows on hover
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
- 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
- The
spantrigger is not focusable and the disabledButtonskips Tab, so keyboard users never see the reason; give the span tabIndex 0 - 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-12.mdget_example("c-tooltip-12")npx shadcn@latest add @reui/c-tooltip-12About Shadcn Tooltip Disabled Button
Tooltip on disabled button with wrapper. Built by composing Button, Tooltip. A free, open source shadcn tooltip example you can install with npx shadcn@latest add @reui/c-tooltip-12 and edit as your own code.
What You Can Build With Shadcn Tooltip Disabled Button
- Composes 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-12
- 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
- Warning Tooltip with warning badge
- Upgrade Prompt Tooltip with feature badge and upgrade link
- Avatar Role Badge Tooltip with avatar and role badge
- 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 Disabled Button?
Use it for a disabled Delete Project button wrapped in a span trigger, so the reason it is locked still shows on hover.
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 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 Disabled Button?
Is Shadcn Tooltip Disabled Button free to use?
Which components does Shadcn Tooltip Disabled Button 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.