Skip navigation
Some React devs assume you need to npm install a library to get tooltips. Not true!
0:00 / 0:23

Some React devs assume you need to npm install a library to get tooltips. Not true!

Ben Holmes

@BHolmesDev46K followers

Visit on X
939 likesDownloadOriginal post

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