@trbl/react-node-info

Send nodes.


Keywords
react, react-component, node, dom, position, ui, ux, getboundingclientrect
License
MIT
Install
npm install @trbl/react-node-info@0.0.5

Documentation

NPM Bundle Size Supported by TRBL

React Node Position

Send nodes.

Quick Start

Installation

$ yarn add @trbl/react-node-position

Composition

  import React from 'react';
  import { NodePositionProvider, withNodePosition } from '@trbl/react-node-position';

  const MyComponent = withNodePosition(forwardRef(props, ref) => return <div ref={ref}>My Component</div>));

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

  export default App;

Demo

To demo locally, clone the repo and

$ yarn
$ yarn dev
$ open http://localhost:3000

Documentation

All available props can be found via the references below:

Contribution

Help us, or let us help you help us.

License

MIT Copyright (c) TRBL, LLC