@hectortav/react-carousel
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-carousel

Lightweight and customizable carousel for React.\

NPM JavaScript Style Guide

Install

# using npm
npm install --save @hectortav/react-carousel
# using yarn
yarn add @hectortav/react-carousel

Usage

import React from 'react'

import { Carousel, DataCardProps } from 'react-carousel'
import 'react-carousel/dist/index.css'

const data: DataCardProps[] = [
  {
    image: 'https://beeimg.com/images/h26180623163.jpg',
    title: 'A happy dog',
    category: 'Animal',
    description: 'A great dog!',
    uri: ''
  },
  {
    image:
      'https://i.pinimg.com/originals/18/4b/8f/184b8f2c10e30326f6ee92b3652408ac.jpg',
    title: 'An orange Cat',
    category: 'Animal',
    description: 'A great cat!',
    uri: ''
  },
  {
    image:
      'https://www.honeyhillfarm.net/wp-content/uploads/2017/07/DSCN0933square-300x300.jpg',
    title: 'A donkey',
    category: 'Animal',
    description: 'A donkey having a snack',
    uri: ''
  }
]

const App = () => {
  return <Carousel title='My projects' data={data} pageLength={2} />
}

License

MIT © hectortav

Readme

Keywords

none

Package Sidebar

Install

npm i @hectortav/react-carousel

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

34.8 kB

Total Files

12

Last publish

Collaborators

  • hectortav