The hooks used by [Varld Fontless](https://github.com/varld/fontless).
npm install @varld/fontless-hooksThe hooks used by Varld Fontless.
``bash
npm install @varld/fontless-hooks
Usage
$3
The
useQuery-hook is a small wrapper around the Next.js router, to easily extract a query parameter.`javascript
import { useQuery } from '@varld/fontless-hooks';// replace
key with the parameter you want to get
let value = useQuery('key');
`$3
The
useScroll-hook can be used to get the window's horizontal and vertical scroll value. It updates when the user scrolls.`javascript
import { useScroll } from '@varld/fontless-hooks';let { x, y } = useScroll(');
`$3
The
useSize-hook can be used to get the size of the browser window. It updates when window is resized.`javascript
import { useSize } from '@varld/fontless-hooks';let { height, width } = useSize(');
``Powered by Varld