Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

aristov/ariamodule

Repository files navigation

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)

About

Library for creating an accessible UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published