Package Exports
- aria-roles
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aria-roles) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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"/>