@wapps/react-scroll

0.0.8 • Public • Published

react-scroll

Build Status

React scroll compoment

Installation

npm install --save @wapps/react-scroll

How to use

import React from 'react';
import Scroll from '@wapps/react-scroll';

const App = messages => (
  <div style={{ overflow: 'scroll' }}>
    {messages.map((message, index) => (
      <Scroll key={index} behavior="smooth">
        {message}
      </Scroll>
    ))}
  </div>
);

export default App;

Live Demo

For a demo, check out https://hupe1980.github.io/wapps-components/

License

MIT

Dependents (1)

Package Sidebar

Install

npm i @wapps/react-scroll

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • hupe1980