1.2.0 • Published 5 years ago
focusmee v1.2.0
What's focus me
It adds focus to an element and adds label for accessibility
#Installation
npm i focusmee --save
Then...
import { focusme } from 'focusme';
focusme({
accessibleBlock: 'accessible-block',
labels: ['Label 1', 'Label 2', 'Label 3']
});
HTML element that needs focus should have a classname 'focus-me'
e.g <div class='focus-me'>
##Options
focusme supports 2 options, accessibleBlock and labels:
- accessibleblock - element group that will be accessible to users
- labels - array of labels to add name/label to an element. This if for screen readers to read