Some React devs assume you need to npm install a library to get tooltips. Not true!
Ben Holmes
Visit on X@BHolmesDev46K followers
98,116 views
Some React devs assume you need to npm install a library to get tooltips. Not true!
For icon buttons, use a combo of the `title` attribute and screenreader text with Tailwind CSS' sr-only class. Gives you a native tooltip for the label while improving a11y
Comments
Comments from the original post on X (Twitter)
No comments yet
