tgl-focus-navigation
v1.0.11
Published
```bash npm install tgl-focus-navigation ```
Downloads
11
Maintainers
Readme
📦 Install
npm install tgl-focus-navigation
yarn add tgl-focus-navigation
🔨 Usage
import useFocusNavigation from "tgl-focus-navigation";
export default () => {
const focusNextElementContainer = useFocusNavigation(true);
return (
<div ref={focusNextElementContainer}>
<Input />
<DatePicker placeholder="select date" />
<Button type="primary">PRESS ME</Button>
</div>
);
};
⚙️ Props
| Prop | Type | Default | Description | | ------------------- | ------- | ------- | ------------------------------ | | isFocusFirstElement | boolean | false | Focus first element by default |