Tooltip

Implement accessible tooltip components with keyboard and screen reader support.

228|18|Updated Dec 7, 2024
One-click install
npx skills add https://github.com/thedaviddias/ux-patterns-for-developers --skill tooltip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Tooltip
Source: https://github.com/thedaviddias/ux-patterns-for-developers/tree/main/skills/tooltip
Command: npx skills add https://github.com/thedaviddias/ux-patterns-for-developers --skill tooltip

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users understand interface elements by providing additional context on hover or focus, clarifying icons, buttons, or text snippets that may not be self-explanatory.

Core Features & Use Cases

  • Contextual Information: Delivers brief explanations for UI elements.
  • Accessibility Enhancement: Supports keyboard navigation and screen readers.
  • Use Case: When a user hovers over a small, unfamiliar icon in a settings menu, a tooltip appears explaining its function, like "Manage User Permissions."

Quick Start

Use the tooltip skill to provide additional context on hover or focus.

Frequently Asked Questions about Tooltip

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add accessible tooltips that work with keyboard navigation?

You can implement accessible tooltips that provide contextual information on hover or focus. They support keyboard navigation and screen reader announcements to explain interface elements like icons or buttons.

What is the best way to provide contextual help for UI icons?

Tooltips are the best way to provide contextual help for UI icons, delivering brief explanations on hover or focus. They clarify small interface elements in menus, such as explaining a gear icon means 'Manage User Permissions'.

When should I use a tooltip in my UI design?

Use a tooltip in UI design when you need to provide additional context for elements that may not be self-explanatory. They deliver brief explanations on hover or focus, clarifying the function of icons, buttons, or text snippets.

Can I display rich content inside a tooltip component?

Yes, this approach supports both simple and rich tooltips. You can display rich content inside the tooltip component while maintaining visual design best practices, keyboard interaction, and screen reader accessibility.

Does a tooltip component announce its content to screen readers?

Yes, the tooltip component announces its content to screen readers. It is built with accessibility enhancements that ensure contextual information is properly communicated when a user hovers or focuses on the UI element.