aria-attributes

List of ARIA attributes

Usage no npm install needed!

<script type="module">
  import ariaAttributes from 'https://cdn.skypack.dev/aria-attributes';
</script>

README

aria-attributes

Build Coverage Downloads Size

List of attributes defined by ARIA.

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install aria-attributes

Use

import {ariaAttributes} from 'aria-attributes'

console.log(ariaAttributes)

Yields:

[ 'aria-activedescendant',
  'aria-atomic',
  'aria-autocomplete',
  'aria-busy',
  'aria-checked',
  // …
  'aria-valuemax',
  'aria-valuemin',
  'aria-valuenow',
  'aria-valuetext',
  'role' ]

API

This package exports the following identifiers: ariaAttributes. There is no default export.

ariaAttributes

Array.<string> — List of lowercase dash-cased attributes (including role).

License

MIT © Titus Wormer