ariamodule

0.5.0 • Public • Published

ariamodule

NPM Version Node.js CI Coverage Status NPM

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.

Installation

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.

NPM

If you're using NPM, you can install AriaModule via:

npm install ariamodule

Usage

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'

License

The MIT License (MIT)

Dependents (1)

Package Sidebar

Install

npm i ariamodule

Weekly Downloads

2

Version

0.5.0

License

MIT

Unpacked Size

150 kB

Total Files

20

Last publish

Collaborators

  • aristov