xico2k-react-scroll-area
[![Build Status](https://travis-ci.org/xiCO2k/react-scroll-area.svg?branch=master)](https://travis-ci.org/xiCO2k/react-scroll-area) [![npm downloads](https://img.shields.io/npm/dt/xico2k-react-scroll-area.svg)](https://npmcharts.com/compare/xico2k-react-s
Last updated a month ago by xico2k .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install xico2k-react-scroll-area 
SYNC missed versions from official npm registry.

Build Status npm downloads

react-scroll-area Demo

NPM

A scroll area wrapper to mimic Facebook Scroll Area

Demo

Installation

With npm:

$ npm i xico2k-react-scroll-area

or with yarn:

$ yarn add xico2k-react-scroll-area

Usage

On your component add:

import ScrollArea from 'xico2k-react-scroll-area';

To render:

<ScrollArea>
    Some Content
</ScrollArea>

Props

All props are optional.

Name Type Default Description
width string / number Ex: 100% / 100px / 100
height string / number Ex: 100% / 100px / 100
trackHidden bool false
trackHideTime int 1000 Milliseconds
minHandlerHeight int 70 Pixels
trackMargin int 4 Pixels
onScroll func callback with { scrollTop: 50, innerHeight: 100, outerHeight: 50, complete: 0.5 }
className string class added to the outer container
innerClassName string class added to the inner container
overflowClassName string class added to the overflow container
trackClassName string class added to the track container
handlerClassName string class added to the handler container

Methods

  • goToBottom(duration = 400);
  • goToTop(duration = 400);
  • goToPos(pos = 50, duration = 400);
  • triggerScroll();

Current Tags

  • 1.1.4                                ...           latest (a month ago)

46 Versions

  • 1.1.4                                ...           a month ago
  • 1.1.3                                ...           a month ago
  • 1.1.2                                ...           a month ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.29                                ...           2 years ago
  • 0.0.28                                ...           2 years ago
  • 0.0.27                                ...           2 years ago
  • 0.0.26                                ...           2 years ago
  • 0.0.25                                ...           2 years ago
  • 0.0.24                                ...           2 years ago
  • 0.0.23                                ...           2 years ago
  • 0.0.22                                ...           2 years ago
  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 111
Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |