a-r-d / react-stickky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-Stickky

A simple React sticky component

Description

Wrap any code within <StickyHeader></StickyHeader> and it will be sticky

<StickyHeader
     className={style}
     scrollIndex="100"
     stickyWidth="100%"
     isSticky={props.isChecked}
>
</StickyHeader>

Options

  • className - Any CSS styles needed to pass down to child components
  • scrollIndex - @scrollIndex y=100 the stickyness will apply to the wrapped component
  • isSticky - A function that takes true or false to toggle stickyness
  • stickyWidth - Takes width if passed or defaults to 100%

About


Languages

Language:JavaScript 100.0%