[Feature Request] Enable Tooltip Functionality for Disabled Elements #1899
AlpayC
started this conversation in
Feature requests
Replies: 2 comments
-
This would be great! The workaround is to wrap the Button in a
|
Beta Was this translation helpful? Give feedback.
0 replies
-
That didn't seem to do the trick for me, but my setup is a little more complicated -- anything standing out as problematic? This behaves as expected without Tooltip, but the Tooltip disables all other functionality in this way. When used inside the button, it's not triggered
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Yes, the current limitation within NextUI is that tooltips are not functional for disabled elements such as buttons or select boxes. This can lead to a less informative user interface, especially when disabled elements could benefit from additional context that a tooltip would provide.
Describe the solution you'd like
I would like NextUI to support an option where tooltips can be enabled for disabled components. This would involve events that trigger tooltips to remain active even when the component itself is not interactive. Ideally, this functionality can be toggled through a prop such as tooltipOnDisabled that can be passed to the component.
Describe alternatives you've considered
An alternative solution could be creating a wrapper around the disabled component that is not disabled itself and could trigger the tooltip. However, this is not as clean or intuitive as having built-in support and could potentially lead to additional markup complexity and styling challenges.
Screenshots or Videos
No response
Beta Was this translation helpful? Give feedback.
All reactions