New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-customizable-carousel

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-customizable-carousel

Latest version: ```0.0.3```

0.0.4
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Latest version: 0.0.3

DEMO

Simple but effective customizable carousel component. It will render only showItemsCount + 2 carousel items, where 2 is left and right hidden items.

Running examples locally:

  • clone project
  • run yarn
  • run yarn dev-server
  • open localhost:8080

Installation

  • Install package yarn add react-customizable-carousel
  • Import component
    import { Carousel } from 'react-customizable-carousel'
    ...
    
    <Carousel>
      <h1>1</h1>
      <h1>2</h1>
      <h1>3</h1>
      <h1>4</h1>
      <h1>5</h1>
      <h1>6</h1>
    </Carousel>
    
  • Import CSS: @import "react-customizable-carousel";

Props

proptypedefaultinfo
infinitebooleanfalseitems count should be showItemsCount + 1
showItemsCountinteger3
transitionDurationinteger0.5Slide animation duration (seconds)
nextArrowfunction/classFaAngleRightA function/class of component to extend default next arrow
prevArrowfunction/classFaAngleLeftA function/class of component to extend default prev arrow
ArrowWrapperClassNamestring''Will be added provided className to arrow wrapper. Also will be added ArrowWrapperClassName--prev and ArrowWrapperClassName--next to corresponding arrows

FAQs

Package last updated on 17 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts