GitXplorerGitXplorer
w

react-scroll-docked

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
18419dc1bb0e38d8cad40f37826f85c3229eca9e

Remove generated files from git

wwgao19 committed 6 years ago
Unverified
276fa93eff591b8273b95edbbb1e4dc62d5db82f

ADD CHANGELOG

wwgao19 committed 6 years ago
Unverified
b4f0cb5edc574ac5fcd7d28791e244de044b498c

Remove unused dependency

wwgao19 committed 6 years ago
Unverified
091b1e372d14a561d3f68640bc459bd0504de040

0.1.4

wwgao19 committed 6 years ago
Verified
9678dad4b95e97368aa8c97bdc54779079910f79

Update README.md

wwgao19 committed 6 years ago
Unverified
2514a8018984e7c1e54342672d7130971785c49b

0.1.3

wwgao19 committed 6 years ago

README

The README file for this repository.

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>