nuxt-a11y

This module integrates Axe tool for auditing website against common Accessibility (A11Y) issues.
462
Install
npm install nuxt-a11y
Latest Version:0.1.0
Vue:3
License:MIT
Last Updated:Nov 24, 2022
Links: npm
Maintainer: baroshem

nuxt-a11y

This module integrates Axe tool for auditing website against common Accessibility (A11Y) issues.

Setup

yarn add --dev nuxt-a11y # yarn
npm i --save-dev nuxt-a11y # npm

Usage

The only thing you need to do to use the module in the default configuration is to register the module in the modules array in nuxt.config.ts:

// nuxt.config.js

{
  modules: ["nuxt-a11y"],
}

And that's it! You can now use the useA11y composable in your Nuxt app:

<script setup lang="ts">
  const violations = useA11y()
</script>

Now, you have access to the violations that were found by the Axe A11Y tool on the current page. The structure of each violation objects looks more or less like this:

interface Result {
  description: string;
  help: string;
  helpUrl: string;
  id: string;
  impact?: ImpactValue;
  tags: TagValue[];
  nodes: NodeResult[];
}

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

Related Packages

@focusring/wcagify

WCAG accessibility audit tool — Nuxt layer with report generation, PDF export an...

5,246 1
@focusring/wcagify-reporter

WCAGify's report schemas, scoring and render-only Nuxt layer, for apps that show...

175 1
oxlint-plugin-vue-sfc-a11y

Vue SFC accessibility rules for oxlint, as a JS plugin. Ports of eslint-plugin-v...

6,833 0
@bauer-group/accessibility-widget-nuxt

Nuxt Plugin für das BAUER GROUP Accessibility Widget.

1,205 0
@yasai/piman

Piman is an open-source accessibility UI framework.

760 28

Version History

Version Released Vue License
0.1.0 ^3.0 MIT