@brix-ui/contexts

Package of some useful helper React contexts.

Usage no npm install needed!

<script type="module">
  import brixUiContexts from 'https://cdn.skypack.dev/@brix-ui/contexts';
</script>

README

@brix-ui/contexts

Package of some useful helper React contexts.


Installation

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

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

Usage

Each context function in this package is exported by default along with its own hook:

import Modal, { useModal } from '@brix-ui/contexts/modal';