CheckOps
Storybook Accessibility Addon
Storybook's accessibility addon (@storybook/addon-a11y) runs axe-core checks on every story, showing violations in an Accessibility panel and enabling automated accessibility tests through Storybook's test tooling.
- Accessibility Testing
- Web Testing
- Open source
- Free
- Javascript
- React
- Extension
- End-to-end & functional
- Accessibility
- Unit testing
- Prototype & UX testing
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Storybook is the widely used workshop for building UI components in isolation, and its accessibility addon brings automated accessibility checks into that workflow. According to Storybook’s accessibility testing documentation, the addon uses Deque’s axe-core to audit each story’s rendered HTML and reports results in an Accessibility panel, grouping violations, passes and incomplete checks and highlighting affected elements on the canvas.
Because every component state is captured as a story, the addon lets teams check many states (disabled, error, loading, dark theme) without building pages. Configuration uses the a11y parameter at story, component or global level to set axe options, rule sets or disable specific rules, and an option to treat violations as errors, warnings or to turn checks off. The documentation also describes running accessibility checks automatically as part of Storybook’s component testing (for example through the Vitest addon in CI), so violations can fail builds. Storybook and its addons are open source under the MIT licence.
Features
- Accessibility panel: Violations, passes and incomplete checks per story.
- Element highlighting: See affected elements on the canvas.
- Per-story configuration:
a11yparameters for rules and behaviour. - Automated runs: Integrate with Storybook’s component testing in CI.
Pros
- Free: Open-source Storybook addon.
- Shift-left: Feedback while components are built.
Cons
- Storybook required: Only useful if you use Storybook.
- Automated limits: axe-core cannot detect every accessibility issue.
Usage and Links (Example)
npx storybook add @storybook/addon-a11y
// Button.stories.js
export default {
component: Button,
parameters: {
a11y: {
config: { rules: [{ id: "color-contrast", enabled: true }] },
test: "error", // fail automated tests on violations
},
},
};
export const Primary = { args: { label: "Pay now", variant: "primary" } };
Resources:
Pricing
Free and open source (MIT licence) as part of Storybook.
Recommended for?
- Design system and component library teams using Storybook.
- Front-end teams wanting accessibility feedback while building components.
Conclusion
The Storybook accessibility addon is one of the easiest ways to make accessibility checks part of everyday component development.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Storybook Accessibility Addon side by side.
Aaxe-coreaxe-core is Deque's open-source accessibility rules engine. It checks rendered HTML and reports WCAG violations as JSON.Compare with Storybook Accessibility Addon
Jjest-axejest-axe is an MIT-licensed custom Jest matcher that runs axe-core against rendered HTML or components and asserts toHaveNoViolations, with colour contrast checks disabled because JSDOM cannot compute them.Compare with Storybook Accessibility Addon
Ccypress-axecypress-axe is an MIT-licensed set of custom Cypress commands that inject axe-core into the page under test and check for accessibility violations with cy.checkA11y.Compare with Storybook Accessibility Addon
TTesting LibraryTesting Library is a family of MIT-licensed packages (DOM, React, Vue, Angular, Svelte, user-event and more) for testing UI the way users use it, querying by role, label and text instead of implementation details.Compare with Storybook Accessibility Addon
PPa11yPa11y is a free, open-source command-line accessibility checker. It opens a URL in a headless browser and reports rule failures.Compare with Storybook Accessibility Addon
AAccessibility InsightsAccessibility Insights is Microsoft's free, open-source (MIT) accessibility testing suite: a Chrome and Edge extension with FastPass and a WCAG 2.1 AA Assessment, plus a Windows app for UI Automation inspection.Compare with Storybook Accessibility Addon