building-components-core

Architect accessible UI components with correct ARIA attributes and animation patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/alexejluft/brudi --skill building-components-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-components-core
Source: https://github.com/alexejluft/brudi/tree/main/skills/building-components-core
Command: npx skills add https://github.com/alexejluft/brudi --skill building-components-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common pitfalls in building accessible and performant UI components like accordions and tabs, ensuring they are keyboard-navigable, screen-reader friendly, and animate smoothly.

Core Features & Use Cases

  • ARIA Compliance: Enforces correct ARIA attributes (aria-expanded, aria-controls, role, aria-labelledby) for accessibility.
  • Animation Best Practices: Guides against slow animations, layout jumps, and incorrect transition properties.
  • Keyboard Navigation: Ensures standard keyboard interactions (Enter, Space, Arrow keys) are implemented correctly.
  • Use Case: When developing a new FAQ section, this Skill ensures the accordions are not only visually appealing but also fully accessible to users with screen readers and keyboard-only navigation.

Quick Start

Use the building-components-core skill to architect an accessible accordion component for a React application.

Frequently Asked Questions about building-components-core

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

FAQPage Schema
How do I implement correct ARIA attributes for accessible accordions?

To implement accessible accordions, apply correct ARIA attributes like `aria-expanded`, `aria-controls`, `role`, and `aria-labelledby` to ensure screen readers accurately interpret the expand and collapse state of the UI component.

What are the best animation patterns for accessible UI components?

The best animation patterns for accessible UI components avoid slow transitions, prevent layout jumps, and use correct transition properties to maintain smooth performance without degrading the user experience for keyboard navigation.

How do I ensure keyboard navigation works correctly for tabs and disclosures?

To ensure keyboard navigation works for tabs and disclosures, implement standard keyboard interactions using Enter, Space, and Arrow keys so users can navigate interactive elements without relying on a mouse.

Can I use this approach to build accessible UI components for any frontend framework?

Yes, you can use this approach to architect accessible UI components for any frontend framework, as it enforces W3C accessibility standards and ARIA compliance universally rather than relying on framework-specific implementations.

Why does my screen reader fail to announce tab panel changes?

A screen reader fails to announce tab panel changes when W3C accessibility standards are not met, often due to missing `aria-controls` or `aria-labelledby` attributes that properly link the tab trigger to its active panel.

What is the correct way to structure DOM elements for accessible tabs?

The correct way to structure DOM elements for accessible tabs involves using appropriate semantic roles and ARIA attributes to address common AI failure modes like incorrect element usage and missing accessibility features.