Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avocode/react-tabguard
Limit tabbing within specified area with an ease
https://github.com/avocode/react-tabguard
Last synced: about 1 month ago
JSON representation
Limit tabbing within specified area with an ease
- Host: GitHub
- URL: https://github.com/avocode/react-tabguard
- Owner: avocode
- License: mit
- Created: 2016-04-06T16:16:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T16:42:24.000Z (about 2 years ago)
- Last Synced: 2024-10-28T22:11:03.811Z (about 2 months ago)
- Language: CoffeeScript
- Size: 1.16 MB
- Stars: 63
- Watchers: 10
- Forks: 9
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-list - react-tabguard - React Tabguard. (Demos / Form Components)
README
React TabGuard
=============![React TabGuard example](https://cldup.com/T9a7pbSgTA.gif)
## Installation:
`npm install react-tabguard`
## Why?
There is no easy way to limit tabbing to a specified area inside your HMTL document. The typical use case where you want to restrict this behavior would be modal dialogs or lightboxes with forms. It’s not desirable to lose focus on the overlay window when tabbing, that's why we created React TabGuard to save the day.
## Usage:
```
'use strict';let React = require('react');
let TabGuard = require('react-tabguard');let App = React.createClass({
render: function() {
return (
Send
);
}
});React.render(, document.getElementById('content'));
```