react-smart-carousel
TypeScript icon, indicating that this package has built-in type declarations

0.3.7 • Public • Published

react-smart-carousel

NPM JavaScript Style Guide

Trello clone

Twitter: Ankit Kumar

Install

npm install --save react-smart-carousel

If you prefer to use yarn, you can do:

yarn add react-smart-carousel

Usage

import React, { Component } from 'react'

import { ReactSmartCarousel } from 'react-smart-carousel'
import 'react-smart-carousel/dist/index.css'

import one from './images/1.jpg'
import two from './images/2.jpg'
import three from './images/3.jpg'
import four from './images/4.jpg'
import five from './images/5.jpg'
import six from './images/6.jpg'

const Example = () =>  {
    return <ReactSmartCarousel images={[one, two, three, four, five, six]} />
}

Props

  • images - An array of images

Demo

Live preview

License

MIT © knowankit

Package Sidebar

Install

npm i react-smart-carousel

Weekly Downloads

2

Version

0.3.7

License

MIT

Unpacked Size

30 kB

Total Files

10

Last publish

Collaborators

  • knowankit