0.1.4 • Published 7 years ago

react-scroll-docked v0.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago