0.1.4 • Published 6 years ago

react-scroll-docked v0.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-scroll-docked

Setup

$ npm i react-scroll-docked

Use

import React from 'react';
import docked from 'react-scroll-docked';

const Navbar = () => <div>Example Navbar</div>;
const DockedNavbar = docked(Navbar);

// the docked one will appear when the page scrolls past 300px
const Example = () => <div>
  <Navbar />
  <DockedNavbar top={300} />
</div>
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.0

6 years ago