Skip to content

Update README.md #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,26 @@ 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.
There is no easy way to limit tabbing to a specified area inside your HTML 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');
```js
import React from 'react'
import ReactDOM from 'react-dom'
import TabGuard from 'react-tabguard'

let App = React.createClass({
render: function() {
class App extends React.Component {
render() {
return (
<TabGuard>
<input type="text" placeholder="Name"/>
<input type="number" placeholder="Age"/>
<input type='text' placeholder='Name'/>
<input type='number' placeholder='Age'/>
<button>Send</button>
</TabGuard>
);
)
}
});
}

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