All Projects → brianmcallister → react-auto-scroll

brianmcallister / react-auto-scroll

Licence: MIT license
Automatically scroll an element to the bottom

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-auto-scroll

Vue Wxchat
❗❗ vue.js仿微信聊天界面展示组件(可滚动加载)。A WeChat chat display component.
Stars: ✭ 192 (+585.71%)
Mutual labels:  scroll
React World
✨🌌 A different web experience in 8 bit React.js World
Stars: ✭ 230 (+721.43%)
Mutual labels:  scroll
react-is-scrolling
Simply detect if users are scrolling in your components in a declarative API
Stars: ✭ 17 (-39.29%)
Mutual labels:  scroll
Stickyfill
Polyfill for CSS `position: sticky`
Stars: ✭ 2,252 (+7942.86%)
Mutual labels:  scroll
React Native Stretchy
🤸‍♀️A ReactNative scrollable stretchy header component
Stars: ✭ 216 (+671.43%)
Mutual labels:  scroll
Vegascroll
↕️ VegaScroll is a lightweight animation flowlayout for UICollectionView completely written in Swift 4, compatible with iOS 11 and Xcode 9.
Stars: ✭ 2,647 (+9353.57%)
Mutual labels:  scroll
Scroll Snap
↯ Snap page when user stops scrolling, with a customizable configuration and a consistent cross browser behaviour
Stars: ✭ 187 (+567.86%)
Mutual labels:  scroll
RollingNotice-Swift
滚动公告、广告,支持灵活自定义cell。淘宝、口碑、京东、美团、天猫等等一切滚动广告 Roll Notice or Advertising, customize cell as UITableViewCell supported, Swift version is also ready
Stars: ✭ 109 (+289.29%)
Mutual labels:  scroll
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (+675%)
Mutual labels:  scroll
Moveto
A lightweight scroll animation javascript library without any dependency
Stars: ✭ 2,746 (+9707.14%)
Mutual labels:  scroll
Scroll
Static publishing software with a newspaper feel built on Tree Notation. Scroll is public domain software.
Stars: ✭ 206 (+635.71%)
Mutual labels:  scroll
V Bar
The virtual responsive crossbrowser scrollbar component for VueJS 2x
Stars: ✭ 216 (+671.43%)
Mutual labels:  scroll
Vue Scroll
Scroll directive on vue
Stars: ✭ 238 (+750%)
Mutual labels:  scroll
Stickybits
Stickybits is a lightweight alternative to `position: sticky` polyfills 🍬
Stars: ✭ 2,220 (+7828.57%)
Mutual labels:  scroll
QuickTraceiOSLogger
A real time iOS log trace tool, view iOS log with pc web browser under local area network, which will automatically scroll like xcode. 一个实时的iOS日志跟踪工具,在局域网中使用 PC Web 浏览器查看 iOS 日志,它将像xcode一样自动滚动。
Stars: ✭ 16 (-42.86%)
Mutual labels:  scroll
React Indiana Drag Scroll
React component which implements scrolling via holding the mouse button or touch
Stars: ✭ 190 (+578.57%)
Mutual labels:  scroll
React Scroll Shadow
Pure CSS shadow to indicate more content in scrollable area
Stars: ✭ 229 (+717.86%)
Mutual labels:  scroll
JhScrollActionSheetView
JhScrollActionSheetView - UIcollectionView横向滚动,类似微博新版的详情页分享界面,可设置单排或双排显示,title不设置不显示title,如果想实现发送站内用户的功能,自己可以改一下代码
Stars: ✭ 13 (-53.57%)
Mutual labels:  scroll
scrollRulerView
请使用 CYRuler (Please use CYRuler)
Stars: ✭ 31 (+10.71%)
Mutual labels:  scroll
React Scroll Sync
Synced scroll position across multiple scrollable elements
Stars: ✭ 252 (+800%)
Mutual labels:  scroll

@brianmcallister/react-auto-scroll

codecov CircleCI npm version

Automatically scroll an element to the bottom

react-auto-scroll is a React component that automatically scrolls a containing element to the bottom.

Table of contents

Demo

Hosted demo: https://react-auto-scroll.netlify.com/

You can also run the demo locally. To get started:

git clone [email protected]:brianmcallister/react-auto-scroll.git
cd react-auto-scroll/demo
npm i
# Optionally link libraries for local development
npm link @brianmcallister/react-auto-scroll
npm link ../node_modules/react
npm start
⇡ Top

Installation

npm install @brianmcallister/react-auto-scroll
⇡ Top

Usage

import AutoScroll from '@brianmcallister/react-auto-scroll';

const MyComponent = ({ someContent }) => (
  <AutoScroll>
    {someContent}
  </AutoScroll>
);
⇡ Top

API

AutoScroll

This is the default export. Use this React component to scroll a container to the bottom when the children change.

interface Props {
  // ID attribute of the checkbox.
  checkBoxId?: string;
  // Children to render in the scroll container.
  children: React.ReactNode;
  // Extra CSS class names.
  className?: string;
  // Height value of the scroll container.
  height?: number;
  // Text to use for the auto scroll option.
  optionText?: string;
  // Prevent all mouse interaction with the scroll conatiner.
  preventInteraction?: boolean;
    // Ability to disable the smooth scrolling behavior.
  scrollBehavior?: 'smooth' | 'auto';
  // Show the auto scroll option.
  showOption?: boolean;
}
⇡ Top
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].