4.2.0 • Published 12 months ago

@chialab/loock v4.2.0

Weekly downloads
213
License
MIT
Repository
github
Last release
12 months ago

Loock

Refined keyboard navigation for websites and components.

NPM

Introducing Loock

  • Organize your web page or web application by navigation areas.
  • Never lose the context while navigating the area with the TAB key.
  • Leave the context with the ESC key.

Install

NPM

npm install @chialab/loock
yarn add @chialab/loock

CDN

import { focusTrapBehavior } from 'https://unpkg.com/@chialab/loock?module';

Usage

import { focusTrapBehavior } from '@chialab/loock';

const dialog = document.getElementById('.dialog');
const trap = focusTrapBehavior(dialog, {
    inert: true,
});

dialog.addEventListener('open', () => {
    trap.connect();
});

Development

Build status

Build

Install the dependencies and run the build script:

yarn install
yarn build

This will generate the bundles in the dist folder, as well as the declaration file.

Test

Run the test script:

yarn test

License

Loock is released under the MIT license.

4.2.0

12 months ago

4.0.2

1 year ago

4.1.0

12 months ago

4.0.1

1 year ago

4.0.0

1 year ago

4.0.0-alpha.3

2 years ago

4.0.0-alpha.1

2 years ago

4.0.0-alpha.2

2 years ago

4.0.0-alpha.0

2 years ago

4.0.0-beta.4

2 years ago

3.3.0

2 years ago

3.2.10

2 years ago

3.2.9

3 years ago

3.2.8

3 years ago

3.2.7

3 years ago

3.2.6

3 years ago

3.2.5

3 years ago

3.2.4

3 years ago

3.2.2

3 years ago

3.2.3

3 years ago

2.2.1

4 years ago

3.2.1

4 years ago

2.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

3.0.0-beta.5

4 years ago

3.0.0-beta.3

4 years ago

3.0.0-beta.2

4 years ago

3.0.0-beta.4

4 years ago

3.0.0-beta.1

4 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.2.0

5 years ago

2.0.0

5 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago