APG Patterns
日本語 GitHub
日本語 GitHub

About APG Patterns Examples

Accessible UI component implementations across React, Vue, Svelte, and Astro following WAI-ARIA APG patterns

Overview

This project provides accessible UI components and test cases that follow the WAI-ARIA Authoring Practices Guide (APG) patterns.

Each component is implemented across four major frontend frameworks: React, Vue, Svelte, and Astro (Web Components), providing familiar implementation examples to help you learn about accessibility and WAI-ARIA.

Each component includes tests to verify APG pattern compliance, which you can use directly to ensure accessibility of your own components. The test documentation is also designed in an AI-friendly format, making it easy to generate test cases.

Additionally, we provide styling that supports dark mode, high contrast mode, and forced colors mode to further assist in developing accessible components.

Component Status

Pattern React Vue Svelte Astro Status
AccordionComplete
AlertComplete
Alert Dialog----Planned
BreadcrumbComplete
Carousel----Planned
CheckboxComplete
Combobox----Planned
DialogComplete
DisclosureComplete
Feed----Planned
Grid----Planned
Landmarks----Planned
LinkComplete
ListboxComplete
Menu and Menubar----Planned
Menu ButtonComplete
MeterComplete
Radio GroupComplete
SliderComplete
Slider (Multi-Thumb)----Planned
SpinbuttonComplete
SwitchComplete
Table----Planned
TabsComplete
Toggle ButtonComplete
ToolbarComplete
TooltipComplete
Tree View----Planned
Treegrid----Planned
Window Splitter----Planned

Styling

  • High contrast mode support
  • Reduced motion preferences support
  • Forced colors mode support

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Links