Package Exports
- @faceless-ui/scroll-info
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 (@faceless-ui/scroll-info) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Scroll Info
Highlights
Quick Start
Installation
$ npm i @faceless-ui/scroll-info
$ # or
$ yarn add @faceless-ui/scroll-info
Composition
import React from 'react';
import { ScrollInfoProvider, withScrollInfo, useScrollInfo } from '@faceless-ui/scroll-info';
const WithScrollInfo = withScrollInfo(({ scrollInfo }) => <div>{scrollInfo}</div>);
const UseScrollInfo = () => <div>{useScrollInfo()}</div>;
const App = () => (
<ScrollInfoProvider>
<WithScrollInfo />
<UseScrollInfo />
</ScrollInfoProvider>
)
export default App;
For working examples, see the demo app.
Demo
$ git clone git@github.com:faceless-ui/scroll-info.git
$ yarn
$ yarn dev
$ open http://localhost:3000
API
Contribution
Help us, or let us help you help us.
License
MIT Copyright (c) TRBL, LLC