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.5```

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

Latest version: 0.0.5

DEMO

Simple but effective customizable carousel component.

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. See examples
prevArrowfunction/classFaAngleLeftA function/class of component to extend default prev arrow. See examples
ArrowWrapperClassNamestring''Will be added provided className to arrow wrapper. Also will be added ArrowWrapperClassName--prev and ArrowWrapperClassName--next to corresponding arrows
showDotsbooleanfalseShow dots navigation flag
dotfunction/classFaCircleO / FaCircleA function/class of component to extend default dot. props.current (boolean) will be passed to it. See examples
dotWrapperClassNamestring''Will be added provided className to dot wrapper
dotsWrapperClassNamestring''Will be added provided className to dots wrapper

FAQs

Package last updated on 19 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