8000 GitHub - faceless-ui/mouse-info at v0.0.11
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

faceless-ui/mouse-info

Repository files navigation

NPM Bundle Size Supported by TRBL

React Mouse Info

Grayish brown.

Quick Start

Installation

$ yarn add @trbl/react-mouse-info

Compositon

  import React from 'react';
  import { MouseInfoProvider, withMouseInfo } from '@trbl/react-mouse-info';

  const MyComponent = withMouseInfo(() => return <div>My Component</div>);

  const App = () => {
    return (
      <MouseInfoProvider>
        <MyComponent>
          ...
        </MyComponent>
      </MouseInfoProvider>
    )
  }

  export default App;

Demo

To demo locally, clone the repo and

$ yarn install
$ npm run dev
$ open http://localhost:3000

Documentation

All available props can be found via the references below:

License

MIT Copyright (c) TRBL, LLC

About

A React library for subscribing to mouse events

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 2

  •  
  •  
0