AgentStack
SKILL verified MIT Self-run

Accessibility React

skill-caraya-agent-skills-accessibility-react · by caraya

React-specific accessibility skill for WCAG 2.1 AA compliance, keyboard navigation, ARIA patterns, focus management, meaningful empty and error states, responsive design, and loading transitions. Trigger phrases: React accessibility, React ARIA, focus refs, JSX accessibility, accessible components.

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-caraya-agent-skills-accessibility-react

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Accessibility React? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Accessibility React

The Accessibility React skill adapts core accessibility guidance for React applications. It covers WCAG 2.2 AA compliance, keyboard navigation, ARIA usage in JSX, focus management with refs, accessible component patterns, and handling empty/error/loading states in React UIs.

Features

  • Keyboard Navigation: Ensure all interactive components are keyboard accessible using React event handlers and tabIndex.
  • ARIA in JSX: Use ARIA attributes in JSX (aria-label, aria-live, etc.) for screen reader compatibility.
  • Focus Management: Manage focus using React refs and effects, especially for modals, dialogs, and dynamic content.
  • Meaningful Empty and Error States: Render clear empty/error states using React conditional rendering.
  • Responsive Design: Use CSS-in-JS or class-based responsive patterns for React components.
  • Loading Transitions: Show loading indicators and transitions using React state.

Description

This skill provides React-specific best practices for building accessible UIs. It ensures your React app is inclusive, meets WCAG 2.2 AA, and leverages React idioms for accessibility.

When To Use

  • Building new React components or apps.
  • Refactoring for accessibility in React codebases.
  • Ensuring React UIs meet WCAG 2.2 AA.

Shared Reference

When generating or scaffolding components, use references/accessible-component-generation.md as the source of truth for semantics, accessible names, keyboard behavior, focus handling, and non-happy-path states. Apply the React addendum in that reference for framework-specific patterns.

Guidelines

Keyboard Navigation

  • [ ] All interactive elements (button, input, custom components) are focusable via Tab
  • [ ] Use tabIndex={0} for custom focusable elements
  • [ ] Focus order matches DOM/visual order
  • [ ] Focus ring is visible (use :focus-visible or custom styles)
  • [ ] Custom widgets support keyboard events (Enter, Space, Escape)
  • [ ] No keyboard traps (user can always Tab away)
  • [ ] Modals/dialogs trap focus while open, return focus on close (see focus-trap-react)

Screen Readers

  • [ ] All images use alt prop (``)
  • [ ] All form fields have ` or aria-label`
  • [ ] Buttons/links have descriptive text (not "Click here")
  • [ ] Icon-only buttons use aria-label
  • [ ] One `` per page, headings in order
  • [ ] Dynamic content changes use aria-live regions
  • [ ] Tables use ``

Visual

  • [ ] Text contrast ≥ 4.5:1 (normal) or ≥ 3:1 (large)
  • [ ] UI elements contrast ≥ 3:1
  • [ ] Color is not the only indicator
  • [ ] Text resizable to 200% without breaking layout
  • [ ] No flashing content >3 times/sec

Forms

  • [ ] Every input has a visible label
  • [ ] Required fields indicated (not by color alone)
  • [ ] Error messages specific and associated with the field
  • [ ] Error state visible by more than color (icon, text, border)
  • [ ] Form errors summarized and focusable

Content

  • [ ] lang attribute set on ``
  • [ ] Page has descriptive ``
  • [ ] Links distinguishable (not by color alone)
  • [ ] Touch targets ≥ 44x44px
  • [ ] Empty states are meaningful

Component Generation Guidance

For component scaffolding rules and anti-patterns, follow references/accessible-component-generation.md, including its React addendum.

References

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.