Skip to content

Simple react component that makes its children stick to the top

Notifications You must be signed in to change notification settings

lemonCMS/react-sticky

Repository files navigation

React Sticky component

A easy to use component to make somethin stick on the top of your screen

  • React 16 compatible
  • SSR compatible

Demo & docs

https://ultimatejs.babyblox.nl/sticky

Installment

Install with npm

npm install @wicked_query/react-sticky --save

Or with yarn

yarn add @wicked_query/react-sticky

How to use

<Sticky>
  <div>
    Stick to top
  </div>
</Sticky>

Play online

Know issues

  • No margins. The wrapped tag may not have a margin.
  • You can only wrap html tags, no React Components.
  • Does not work on google chrome mobile, but why?

------------------------
Happy coding

About

Simple react component that makes its children stick to the top

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published