@acolorbright/react-hooks
v1.0.1
Published
ACB's package for reusable React hooks
Downloads
6
Readme
@acolorbright/react-hooks
ACB's package for reusable React hooks
Installation
npm install -E @acolorbright/react-hooks
Usage
After installing import the hooks you need, for example:
import { useMediaQuery } from '@acolorbright/react-hooks
The following hooks are available:
useAxeReact
- Implements Axe during developmentuseKeyboardFocus
- Adds class for keyboard focus stylinguseMediaQuery
- Provides media query interface to JSuseScrollLock
- Implements CSS class control for scroll lockinguseScrollPosition
- Provides window scroll coordinatesuseTabPanelInterface
- Adds keyboard and mouse controls for tab panel interface