1.0.2 • Published 6 years ago

aria-roles v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

aria-roles

A map of aria roles and their descriptions, as detailed by ARIA.

Installation

npm install aria-roles --save

Usage

Use this package in places where you'd use ARIA role strings.

At the top of your file, add the following:

import { Roles } from aria-roles;

Then you can use the values wherever they're needed:

<div class="menuItem" role={Roles.MenuItem}/>

Resolves to

<div class="menuItem" role="menuitem"/>