skills/expandable-text/SKILL.md
Use when implementing show or hide additional text content on demand.
npx skillsauth add thedaviddias/ux-patterns-for-developers expandable-textInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Show or hide additional text content on demand
Expandable Text is a content management pattern that allows users to expand and collapse sections of text. This pattern improves readability by initially hiding non-essential content while keeping it accessible on demand. Expandable Text is commonly used to manage lengthy descriptions, article summaries, or additional details that are helpful but not immediately necessary. It helps users scan content efficiently while maintaining a clean and minimal interface.
Use Expandable Text when you need to manage lengthy content while keeping essential information visible. Common scenarios include:
references/pattern.md, then choose the smallest viable variation.Required ARIA attributes:
aria-expanded="false" on the button (updated dynamically).aria-controls="id-of-content" to link the button to the expandable content.hidden attribute on the expandable content when collapsed.aria-live="polite" if the content update needs to be announced.For full implementation detail, examples, and testing notes, see references/pattern.md.
Pattern page: https://uxpatterns.dev/patterns/content-management/expandable-text
tools
Use when implementing multi-step forms and processes.
content-media
Use when implementing video playback with controls.
development
Use when choosing, comparing, or implementing UX patterns across the UX Patterns for Developers corpus.
tools
Use when implementing user profile and account management.