focus-layers
Tiny React hooks for isolating focus within subsections of the DOM.
File Explorer
Download Latest Version (.zip)- AutoFocusExample.tsx
- CustomLockExample.tsx
- Dialog.tsx
- ExplicitReturnExample.tsx
- FreeFocusToggleExample.tsx
- index.html
- index.tsx
- LayeringExample.tsx
- README.md
- SimpleExample.tsx
- SubscriptionExample.tsx
- wrapFocus.tsx
- LockStack.tsx
- useFocusLock.tsx
- .gitignore
- .prettierrc
- LICENSE
- package.json
- README.md
- tsconfig.json
- yarn.lock
# Installation Guide
1. Get the code
git clone https://github.com/discord/focus-layers
Downloads the entire project code from GitHub to your computer.
cd focus-layers
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
