Tooltip as a property for every component?
See original GitHub issueFeature request type
Enhance component
Component name
Tooltip
Is your feature request related to a problem?
No response
Describe the solution you’d like
It would be a blast if I could use Tooltip not as a wrapper around other component, but as a property of that component. For example <MudNumericField ToolTip="Bla"/>
Have you seen this feature anywhere else?
WPF 😉
Describe alternatives you’ve considered
title="Bla"
Pull Request
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Building a tooltip component - web.dev
A tooltip is a non-modal, non-blocking, non-interactive overlay containing supplemental information to user interfaces. It is hidden by default ...
Read more >Controlling tooltips & pop-up menus with components in ...
Use compound components to control tooltips and pop-up menus in your React ... Your tooltip should appear on top of all the other...
Read more >Build an accessible tooltip component efficiently with CSS ...
Tooltip is an informative and short message which appears only when there is user interaction with an element on the UI of an...
Read more >Building a Tooltip Component with React
A Tooltip component consists of 3 elements ; The main HTML element #tooltip is a parent of two other elements, label, and arrow....
Read more >Building a simple tooltip component that never goes off ...
How to build a simple, responsive and lightweight tooltip web component, with minimal HTML, CSS and JavaScript and no framework dependency.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Not, if the ToolTip parameter would accept any object. That object could either be plain string as well as reference to MudTooltip instance - for those requiring customisation. In WPF ToolTip is a property of FrameworkElement, which is a base class for all controls.
Not only that but mainly readability. Using parameter would just feel more natural to me.
The change mentioned in https://github.com/MudBlazor/MudBlazor/pull/3913#issuecomment-1036982747 was implemented in https://github.com/MudBlazor/MudBlazor/pull/4433 in case anyone is wondering.