Some React devs assume you need to npm install a library to get tooltips. Not true!
Ben Holmes
Открыть в X@BHolmesDev46 тыс. подписчиков
98 116 просмотров
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
Комментарии
Комментарии из оригинального поста в X (Twitter)
Комментариев пока нет
