APG Patterns Examples
Accessible component patterns for React, Vue, Svelte, and Astro
Patterns
Browse WAI-ARIA APG pattern implementations
Guide
Learn how to use these patterns in your projects
About
About this project and its goals
Available Patterns
Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Button
A widget that enables users to trigger an action or event, such as submitting a form or toggling a state.
Dialog (Modal)
A window overlaid on the primary window, rendering the content underneath inert.
Switch
A type of checkbox that represents on/off values, as opposed to checked/unchecked.
Tabs
A set of layered sections of content, known as tab panels, that display one panel at a time.
Toolbar
A container for grouping a set of controls, such as buttons, toggle buttons, or checkboxes.
Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Alert
An element that displays a brief, important message in a way that attracts the user's attention without interrupting the user's task.