UNPKG

@mmcodemark/fuselage-hooks

Version:

React hooks for Fuselage, Rocket.Chat's design system and UI toolkit

102 lines (60 loc) 2.57 kB
<!--header--> <p align="center"> <a href="https://rocket.chat" title="Rocket.Chat"> <img src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" alt="Rocket.Chat" /> </a> </p> # `@mmcodemark/fuselage-hooks` > React hooks for Fuselage, Rocket.Chat's design system and UI toolkit --- [![npm@latest](https://img.shields.io/npm/v/@mmcodemark/fuselage-hooks/latest?style=flat-square)](https://www.npmjs.com/package/@mmcodemark/fuselage-hooks/v/latest) [![npm@next](https://img.shields.io/npm/v/@mmcodemark/fuselage-hooks/next?style=flat-square)](https://www.npmjs.com/package/@mmcodemark/fuselage-hooks/v/next) ![react version](https://img.shields.io/npm/dependency-version/@mmcodemark/fuselage-hooks/peer/react?style=flat-square) ![npm downloads](https://img.shields.io/npm/dw/@mmcodemark/fuselage-hooks?style=flat-square) ![License: MIT](https://img.shields.io/npm/l/@mmcodemark/fuselage-hooks?style=flat-square) ![deps](https://img.shields.io/librariesio/release/npm/@mmcodemark/fuselage-hooks?style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/@mmcodemark/fuselage-hooks?style=flat-square) <!--/header--> ## Install <!--install--> Firstly, install the peer dependencies (prerequisites): ```sh npm i @mmcodemark/fuselage-tokens react # or, if you are using yarn: yarn add @mmcodemark/fuselage-tokens react ``` Add `@mmcodemark/fuselage-hooks` as a dependency: ```sh npm i @mmcodemark/fuselage-hooks # or, if you are using yarn: yarn add @mmcodemark/fuselage-hooks ``` <!--/install--> ## Contributing <!--contributing(msg)--> Contributions, issues, and feature requests are welcome!<br /> Feel free to check the [issues](https://github.com/RocketChat/fuselage/issues). <!--/contributing(msg)--> ### Building As this package dependends on others in this monorepo, before anything run the following at the root directory: <!--yarn(build)--> ```sh yarn build ``` <!--/yarn(build)--> ### Linting To ensure the source is matching our coding style, we perform [linting](<https://en.wikipedia.org/wiki/Lint_(software)>). Before commiting, check if your code fits our style by running: <!--yarn(lint)--> ```sh yarn lint ``` <!--/yarn(lint)--> Some linter warnings and errors can be automatically fixed: <!--yarn(lint-and-fix)--> ```sh yarn lint-and-fix ``` <!--/yarn(lint-and-fix)--> ### Running tests Whenever possible, add tests to describe exactly what your code do. You can run them by yourself: <!--yarn(test)--> ```sh yarn test ``` <!--/yarn(test)-->