Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Focus Limit

A Javascript library that limits the area the elements can be focused in.

Installation and Usage

Install the library with npm install --save focus-limit or yarn add focus-limit.

Import the library to your project:

import focusLimit from 'focus-limit';

Initialize the limiter on any node:

const formLimiter = focusLimit(document.querySelector('.form'));

// Call method 'limit'

formLimiter.limit();

// Call method 'unlimit' when you don't need limitation

formLimiter.unlimit();

Methods

Method Description
limit() Limits the aria of focus
unlimit() Unlimits the aria of focus

About

Limit the area of focus

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages