0.2.5 • Published 6 years ago

react-stickyfill v0.2.5

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

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}.

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.2.0

8 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago