AriaModule is a library for creating an accessible UI based on WAI-ARIA. This is an extension for htmlmodule which also re-exports all the content from it.
The easiest way to get AriaModule is to include pre-built bundle from CDN. Since AriaModule is built on top of HtmlModule, you should also enable it:
<script src="https://unpkg.com/htmlmodule@latest/dist/htmlmodule.js"></script>
<script src="https://unpkg.com/ariamodule@latest/dist/ariamodule.js"></script>
It injects htmlmodule
and ariamodule
globals into your environment.
If you're using NPM, you can install AriaModule via:
npm install ariamodule
Pre-built bundle
const { RoleButton } = ariamodule
In CommonJS
const { RoleButton } = require('ariamodule')
In ES2015
import { RoleButton } from 'ariamodule'
The HtmlModule stuff can also be imported from AriaModule:
import { HtmlA } from 'ariamodule'