skills/button/SKILL.md
Use when you need to trigger actions and submit forms.
npx skillsauth add thedaviddias/ux-patterns-for-developers buttonInstall 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.
Trigger actions and submit forms
Buttons are interactive elements that trigger actions or events when clicked or interacted with.
references/pattern.md, then choose the smallest viable variation.Required ARIA attributes:
aria-label for icon-only buttonsaria-pressed for toggle buttonsaria-expanded for buttons that control expandable contentaria-disabled="true" instead of the disabled attributearia-describedby to associate additional descriptive textImplementation example:
<!-- Icon-only button with proper ARIA -->
<button type="button" aria-label="Close dialog">
<svg aria-hidden="true">
<use href="#icon-close" />
</svg>
</button>
<!-- Toggle button with ARIA pressed state -->
<button type="button" aria-pressed="false">
<span>Dark mode</span>
</button>
<!-- Expandable content button -->
<button type="button" aria-expanded="false" aria-controls="content-1">
<span>Show more</span>
</button>
For full implementation detail, examples, and testing notes, see references/pattern.md.
Pattern page: https://uxpatterns.dev/patterns/forms/button
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.