1.0.4 • Published 6 years ago

masspa-carousel v1.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

masspa-carousel

NPM JavaScript Style Guide

Install

npm install --save masspa-carousel

Usage

import React, { Component } from 'react'
import MasspaCarousel from 'masspa-carousel'

class Example extends Component {
  render () {
    return (
      <MasspaCarousel />
    )
  }
}

Properties

PropDescription
listBranchesList branch
typeType of carousel. Enum [slideThree, slideOne, default]

Example

Check full example in the Example folder.

import React, { Component } from 'react';
import MasspaCarousel from 'masspa-carousel';
import branch1 from './images/branch_01.jpg'
import branch2 from './images/branch_02.jpg'
import branch3 from './images/branch_03.jpg'
import branch4 from './images/branch_04.jpg'

const listBranches = [
  {
    branchName: 'Chi nhánh Gia Lai',
    imageUrl: branch1,
  },
  {
    branchName: 'Chi nhánh Gia Lai',
    imageUrl: branch2,
  },
  {
    branchName: 'Chi nhánh Gia Lai',
    imageUrl: branch3,
  },
  {
    branchName: 'Chi nhánh Gia Lai',
    imageUrl: branch4,
  },
]

class Example extends Component {
  render() {
    return (
        <MasspaCarousel 
          type="slideThree"
          listBranches={listBranches}
        />
    );
  }
}

Demo

Default

demo

slideOne

demo

slideThree

demo

License

MIT © Masspa

1.0.4

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