This is a collection of low-level, vanilla JavaScript tools for building consistently accessible UIs around ARIA roles, states, and properties. You can use the tools directly to add ARIA-enabled interactions (including keyboard handlers), or incorporate them into your own libraries to create ARIA-powered web components.
- Check out the examples and API documentation.
- Get the code:
- If you're using a bundler (such as Browserify, Webpack, or Rollup),
just
npm install aria-tools
and require away. - Otherwise, grab dist/aria-tools.js and drop it into your project.
- If you're looking for the custom elements, just include
dist/aria-elements.js and you can start using
elements such as
<aria-accordion>
right away.