Horizontal scroll component for javascript
DO NOT USE: IN CONSTRUCTION
npm install --save react-horizontal-scroll-display
//
// \CLASS COMPONENT
//
import React, { Component } from 'react'
import HorizontalScroll from 'react-horizontal-scroll-display'
import 'react-horizontal-scroll-display/dist/index.css'
class Example extends Component {
render() {
return <HorizontalScroll />
}
}
//
// \FUNCTIONAL COMPONENT
//
import React from 'react'
import HorizontalScroll from 'react-horizontal-scroll-display'
import 'react-horizontal-scroll-display/dist/index.css'
const Example = () => {
return <HorizontalScroll />
}
Attribute | Default | Type | Description |
---|---|---|---|
items | [] | Array |
List of react components to be rendered |
MIT © desduvauchelle
Create an NPM package: https://www.freecodecamp.org/news/how-to-make-a-beautiful-tiny-npm-package-and-publish-it-2881d4307f78/
How to create react package https://www.youtube.com/watch?v=N8d-CLmg3hw&ab_channel=LevelUpTuts