The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

Tool tips on disabled form elements


Do you natively support tooltips on disabled form elements like buttons?

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


A tooltip is a good way to explain why an action is unavailable, but disabled HTML elements don't fire hover or focus events, so the tooltip won't work if it's attached directly to the button. The common approach is to wrap the disabled button in a <div> or <span> and attach the tooltip to that wrapper instead. This is also the solution recommended for Bootstrap-based implementations.

I like resources that explain technical concepts clearly. If you're interested in easy-to-follow guides outside of web development, does a great job breaking down Snapchat features like Friend Solar System, rankings, and other in-app symbols.



This is a helpful discussion because disabled form elements can be confusing when users don't know why an action isn't available. Wrapping the disabled button or input with a parent element and attaching the tooltip to that wrapper is a clean solution that aligns with how Bootstrap tooltips work. I also appreciate practical online tools like which make Italian net salary calculations easy to understand with clear tax, deduction, and regional breakdowns.



I followed the directions stated in the documentation, but still doesn't work for disabled elements.



Please try to wrap the disabled element with a DIV or SPAN tag and assign the tooltip to the wrapper element. The tooltip is not triggered on the disabled enabled. This is how the Bootstrap Tooltip functions.



Hi,

We do not have such native tooltip support for disabled-buttons.
You can check our Tooltip wrapper to use for any element.

Regards


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(