1.1.9 • Published 6 years ago

react-horizontal-switch-scroll v1.1.9

Weekly downloads
16
License
ISC
Repository
github
Last release
6 years ago

Quick start guide

Installing react-horizontal-switch-scroll

$ npm install --save react-horizontal-switch-scroll

Usage

import { SwitchCarousel }  from 'react-horizontal-switch-scroll'

const data = [
    {
        name: "home"
        url: "/"
    },
    {
        name: "about"
        url: "/about.html"
    },
    {
        name: "contact"
        url: "/contact.html"
    }
]

const list = (data) => {
    const list_elements = data.map((elem, index) => {
        return (
            <a href={elem.url}>{elem.name}</a>
        )
    });
    return list_elements;
}

.....


class React-Component extends React.Component {


......


render() {
    return (

        
.....

        <SwitchCarousel
            list={list(data)}
            width={250}
            leftButton={<ArrowLeft> < </ArrowLeft>}
            rightButton={<ArrowRight> > </ArrowRight>}
        />
1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago