@brix-ui/hooks

2.2.2 • Public • Published

@brix-ui/hooks

Batch of useful UI-related React hooks.


Installation

npm i @brix-ui/hooks # react react-dom
yarn add @brix-ui/hooks # react react-dom

Make sure to have react and react-dom installed in your package as they are included in our peer dependencies.

Usage

Every hook functions is exported by default and should be used inside React components with respect to the rules of hooks.

import useMediaQuery from '@brix-ui/hooks/use-media-query';

const Component = () => {
  const isMd = useMediaQuery('screen and (min-width: 768px)');

  // ...
};

Readme

Keywords

Package Sidebar

Install

npm i @brix-ui/hooks

Weekly Downloads

2

Version

2.2.2

License

MIT

Unpacked Size

25.2 kB

Total Files

31

Last publish

Collaborators

  • brix-ui