react-stickyfill-fork
React wrapper for Stickyfill library
Last updated 7 months ago by sinimawath .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-stickyfill-fork 
SYNC missed versions from official npm registry.

react-stickyfill

React wrapper for Stickyfill library

Installation

npm install react-stickyfill --save

Usage

Simple usage:

import React, {Component} from 'react';
import Sticker from 'react-stickyfill';

class SomeComponent extend Component{
	render() {
		return (
			<div>{/* Parent Element. */}
				<Sticker>
					<div>{/* Sticky Element */}</div>
				</Sticker>
			</div>
		);
	}
}

Parent Element should have height greater than Sticky Element. Sticky Element should have style position: sticky and top: {some value}.

Current Tags

9 Versions

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |