🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

react-tabguard

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tabguard

React Tabguard

latest
Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
16
Maintainers
1
Weekly downloads
 
Created
Source

React TabGuard

React TabGuard example

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 (
      <TabGuard>
        <input type="text" placeholder="Name"/>
        <input type="number" placeholder="Age"/>
        <button>Send</button>
      </TabGuard>
    );
  }
});

React.render(<App />, document.getElementById('content'));

Keywords

react

FAQs

Package last updated on 10 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts