question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tooltip as a property for every component?

See original GitHub issue

Feature 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:open
  • Created 2 years ago
  • Reactions:4
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
BieleckiLtdcommented, Feb 23, 2022

I think the problem with this is that you would loose all customization options. Tooltip color, placement etc. And adding new parameters for them as well clutters the api in my opinion

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.

What’s the problem with the old approach? Is it just for convenience?

Not only that but mainly readability. Using parameter would just feel more natural to me.

0reactions
Mr-Techniciancommented, May 17, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found