npm.io
1.0.4 • Published 5 years ago

react-awesome-customisable-carousel

Licence
MIT
Version
1.0.4
Deps
2
Size
19 kB
Vulns
0
Weekly
0

Customisable React Carousel

NPM JavaScript Style Guide

Install

npm install --save react-awesome-customisable-carousel

Usage

import React, { Component } from 'react'

import { Carousel } from 'react-awesome-customisable-carousel'

class Example extends Component {

  const Images = [ { image: "URL" }, { image: "URL" }  ]

  render() {
    return (
      <Carousel
        images={Images}
        imgWidth='1000px'
        imgHeight='600px'
      />
    )
  }
}

Props

Common props you may want to specify include:

  • images - Array of Objects with images (URL, Local File Paths)
  • imgWidth - Pass custom width with "px" or "vw" suffix
  • imgHeight - Pass custom heigh with "px" or "vh" suffix

License

MIT M-o-h-a-n-S-i-n-g-h