accname
v1.1.0
Published
This library contains a TypeScript implementation of the [Accessible Name Computation](https://www.w3.org/TR/accname-1.1/).
Downloads
1,375
Readme
accname
A TypeScript library for calculating the accessible name of HTMLElement
s.
Usage
To install accname
with NPM, run:
$ npm install accname
Once installed, import and use accname
as follows:
import {getAccessibleName} from 'accname';
const elem = document.getElementById('target');
const name = getAccessibleName(elem);
Disclaimer
This is not an officially supported Google product.