svelteuidev / svelteui

SvelteUI Monorepo
https://svelteui.dev
MIT License
1.28k stars 64 forks source link

[Feature Request] Add "disabled" property to Tooltip component #374

Closed tomconnors closed 1 year ago

tomconnors commented 1 year ago

Usage example, including component, action, motion, or utility API

I'd like to be able to prevent a tooltip from opening when my UI is in certain states, but that currently means that I have to take over control of the tooltip w/ my own mouse event listeners. The "disabled" property I propose has no effect when false/undefined/null, but when true causes the tooltip to not open on mouseover.

Possible implementation - describe how the feature can be implemented

No response

Do you want to contribute this feature and create a pull request

No

tomconnors commented 1 year ago

Nevermind, I realized I can pass undefined for the opened prop to get this behavior. Sorry for the noise.