Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there no tooltip property for raised and flat buttons?

Tags:

material-ui

I often need the tooltip property to explain why a button is disabled, any reason why there is no support for that?

like image 498
Or Poran Avatar asked May 22 '16 12:05

Or Poran


1 Answers

Mostly for the same reason other features we'd like to include are currently unsupported.

Material-UI is developed almost exclusively by volunteers, and community contributors on their own time, so we have to pick and choose what to focus on.

We have talked about exposing Tooltip as a documented public component, but that will take work to clean up and document the API, and test it for use outside Material-UI components. At that point you'll be able to add a tooltip to a Button or anything else.

It's unlikely this will happen prior to the styles re-write that is targeted for the next breaking release, or the patch releases that will almost inevitably follow that major overhaul.

like image 132
Matt Avatar answered Nov 11 '22 09:11

Matt