1.2.0 • Published 5 years ago

focusmee v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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
1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago