Skip to content

google/accname

Repository files navigation

accname

A TypeScript library for calculating the accessible name of HTMLElements.

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.