1.0.2 • Published 7 years ago

offset-scroll v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Simple component displaying a list of item and allowing selection of the initial scroll position (as an index of the item list)

Props

  • offset: number of the item to scroll the component to (0-based)
  • elementHeight: height per item (currently only supports all items of same height)
  • className: container class name

This will only scroll if the component is sufficiently constrained in height. If offset is pointing to last item in the list then we'll scroll to the bottom of the list, but we won't add some blank space to put that item to the top.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago