GitPedia

Axe mode

Accessibility testing visualized

From raunofreiberg·Updated April 18, 2026·View on GitHub·

This project is an attempt to leverage [`axe-core`](https://github.com/dequelabs/axe-core) in a component to find accessibility violations and provide information on how to resolve them. The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2020. Key topics include: a11y, accessibility, axe, testing.

Latest release: v0.0.1-alpha.3
June 29, 2020View Changelog →

axe-mode

npm

WIP

This project is an attempt to leverage axe-core in a component to find accessibility violations and provide information on how to resolve them.

Currently, this only works for React.

See it in action on CodeSandbox.

Demo

Usage

Install the library:

bash
yarn add axe-mode -D

or

bash
npm install axe-mode --save-dev

Import the component and wrap it around your application or any other component tree you would like to validate:

tsx
import AxeMode from 'axe-mode'; function App() { return ( <AxeMode disabled={process.env.NODE_ENV !== 'development'}> <h1 aria-expanded="123">Hello world!</h1> </AxeMode> ); }

Launch your application as usual. Any violations of accessibility will show up as an overlay. If you wish to interact with your application, overlays can be toggled on/off with <kbd>Ctrl + I</kbd>.

You can safely leave the component around your application since this whole library and its dependencies will be dropped in production.

Note: Make sure to only run in production by using the disabled prop with your environment variable.

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from raunofreiberg/axe-mode via the GitHub API.Last fetched: 6/25/2026