@economist/component-carousel

2.0.1 • Public • Published

By:EconomistBuild StatusBuild StatusCoverage Status

Carousel

A generic carousel component

Usage

This component expects an ES6 environment, and so if you are using this in an app, you should drop in a polyfill library - it has been tested with babel-polyfill but core-js or es6-shim may also work.

The default export is a React Component, so you can simply import the component and use it within some JSX, like so:

import Carousel from 'component-carousel';

return <Carousel/>;

For more examples on usage, see src/example.es6.

Install

npm i -S component-carousel

Run tests

npm test

/@economist/component-carousel/

    Package Sidebar

    Install

    npm i @economist/component-carousel

    Weekly Downloads

    17

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    135 kB

    Total Files

    15

    Last publish

    Collaborators

    • economist-org-bot
    • wellingtonvieira
    • v.potonya
    • evgenylyndin
    • tonygoodey
    • uwajacques
    • nanjunda-teg
    • futuraprime
    • diana.carmen
    • economistrobot
    • withoutnations
    • davidwong.economist.com
    • barneyward
    • ashutosh-teg
    • angelamaugey
    • a-w-l
    • irfan2204
    • mikeconway
    • jamespenrice
    • matt-hall-kcc
    • yannstepienik
    • johnvannguyen
    • ferdousiqbal
    • nam-econ
    • jonleeeconomist
    • madhav1-teg
    • kartik.saxena
    • alexselbyboothroyd
    • tayoja
    • elliottmorris
    • elenafayethomas
    • rendyfebry.eco
    • greg-cann
    • stephanienedoklanova
    • gdunton
    • drinkataco
    • fceco
    • shrikant-npm-economist
    • tothvoj
    • ecomorant
    • danaciocan
    • mattcouchman
    • kristynolan
    • johti
    • economist-web-team
    • mattpointblank
    • sukh-kinandcarta
    • otomogroove
    • samualdjpayne
    • impactyogi
    • lewtur
    • shahdotrahul
    • pedrito77
    • himanshupaleco
    • aniketguptaeco
    • ishankguptaeco
    • stancek_globallogic
    • kevin-economist
    • matildealiffi
    • pads
    • raynelle03
    • robmorgan-tab
    • forpet
    • jonh-econ
    • davidgoodchild
    • just_ak87
    • fadumoaideed
    • jaroslavhamrak
    • mloveday
    • irfanyasin_teg
    • igorshcherba
    • manunes
    • joeawillis
    • johnjameshodgins
    • ethancevans
    • jonny_kc
    • adjizulfiqarfauzi
    • tegalankf
    • afiefyr
    • chriscamplin
    • jayyecm
    • ashrafiftekhar
    • cjallen88
    • kamil_p
    • jimhuntyeconomist
    • stevedrog
    • johnperagine
    • simonwtaylor
    • layo_titi
    • umairyounus
    • banguneco
    • simmyd91
    • xaviergimenez
    • ov212
    • rmisyuk
    • grmnd
    • farnaz.ostovari
    • matthewarrowsmith
    • vinnay0308
    • nautiyalmanish
    • charlottecutler
    • ykswra-teg
    • cristiangutueconomist
    • azzuhasan
    • sangeeta-economist
    • edemeconomist
    • endiirawaneco
    • yordan-teg
    • ghazali-teg
    • krishnapriyaelango
    • rsmutch
    • yousea2_economist
    • luketaylor
    • ctheodoridou
    • larry4000
    • celltowertrees
    • kellybrocklehurst
    • emiliawil
    • mfiresky
    • faisal1505
    • liambird
    • lgordienko
    • petervoeconomist
    • dwi-teg
    • raghu-teg
    • zeek01
    • jakezachariahnixon
    • leahpatel
    • danielmensah
    • teenuburi
    • robthomas72
    • wizbit77
    • ravil_nagmetov
    • aayushkumarecon
    • rully-teg
    • romany-gl
    • rospearce
    • devrath-teg
    • cristianpetre-teg
    • benhalsteadteg
    • alexeco
    • irshadfareed
    • jimc-teg
    • aaron-economist
    • fteoldi
    • yevdomin
    • econ.martinchan
    • rahuldhuri
    • johnfriend
    • emilyblundellteg
    • megha123
    • paarthpuri
    • sahu-economist
    • neilateconomist
    • faiz-teg
    • saurabhsatwani-teg
    • rorywebber
    • josephc_100
    • danielperezcascon
    • jonleeeconomist2
    • olumideosikomaiya
    • walteco
    • gibbsy
    • ovysotskaya
    • pvalentim
    • ninjanailseconomist
    • connorpayne
    • siva-teg
    • lenface
    • karltaylor
    • shivpathak-teg
    • akshatrastogi01
    • benpeh
    • virajvinodkumar
    • ajeet-singh024
    • rickmather
    • mikeecon
    • trankimtung-economist
    • raruprai
    • alanrennie
    • juraj271
    • greggschofield
    • tgrisley
    • richard-frost
    • ransomprofit
    • chloemcmullan
    • stevenleeeconomist
    • igilham-economist
    • femieconomist
    • luthfifrahman