ariaset
ariaset make easier assign for aria-" properties.
Install
$ yarn add ariaset -D
or
$ npm install ariaset -D
Usage
The recommend use case is using import
statements.
; const element = document; // set a property; // get a property;// => description // you can set multiple properties.; // of course, you can get multiple properties.;// => { haspopup: 'listbox', expanded: false }
Alternatively, you can use script
tag with html file.
Licence
MIT