Skip to content

nschonni/aria-roles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"/>

About

ES6 Object for Aria Roles

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%