JSPM

@rocket.chat/fuselage-hooks

0.38.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2278
  • Score
    100M100P100Q129821F
  • License MIT

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

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rocket.chat/fuselage-hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Rocket.Chat

    @rocket.chat/fuselage-hooks

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


    npm@latest npm@next react version npm downloads License: MIT

    deps npm bundle size

    Install

    Firstly, install the peer dependencies (prerequisites):

    npm i @rocket.chat/emitter @rocket.chat/fuselage-tokens react
    
    # or, if you are using yarn:
    
    yarn add @rocket.chat/emitter @rocket.chat/fuselage-tokens react

    Add @rocket.chat/fuselage-hooks as a dependency:

    npm i @rocket.chat/fuselage-hooks
    
    # or, if you are using yarn:
    
    yarn add @rocket.chat/fuselage-hooks

    Contributing

    Contributions, issues, and feature requests are welcome!
    Feel free to check the issues.

    Building

    As this package dependends on others in this monorepo, before anything run the following at the root directory:

    yarn build

    Linting

    To ensure the source is matching our coding style, we perform linting. Before commiting, check if your code fits our style by running:

    yarn lint

    Some linter warnings and errors can be automatically fixed:

    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