desduvauchelle / react-horizontal-scroll-display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-horizontal-scroll-display

Horizontal scroll component for javascript

NPM JavaScript Style Guide

DO NOT USE: IN CONSTRUCTION

Install

npm install --save react-horizontal-scroll-display

Usage

//
// \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 />
}

Attributes

Attribute Default Type Description
items [] Array List of react components to be rendered

License

MIT © desduvauchelle

Notes to self

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

About

License:MIT License


Languages

Language:HTML 49.3%Language:JavaScript 45.0%Language:CSS 5.8%