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

react-next-carousel

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-next-carousel

react.js and next.js carousel with typescript

  • 0.0.10
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

npm version Build Status FOSSA Status

Typescript Supported Powerful, lightweight and fully customizable carousel component for React.js and Next.js apps.

Important

I don't have any time available to keep maintaining this package. If you have any request, try to sort it within the community. I'm able to merge pull requests that look safe from time to time but no commitment on timelines here. Feel free to fork it and publish under other name if you are in a hurry or to use another component.

Features

  • Responsive
  • Mobile friendly
  • Swipe to slide
  • Server side rendering compatible
  • Keyboard navigation
  • Support React.js and Next.js with Typescript
  • Custom animation duration
  • Auto play w/ custom interval
  • Supports images, videos, text content or anything you want. Each direct child represents one slide!
  • Supports external controls
  • Highly customizable:
    • Custom thumbs
    • Custom arrows
    • Custom indicators
    • Custom status
    • Custom animation handlers

Demo

http://leandrowd.github.io/react-responsive-carousel/

Check it out these cool demos created using storybook.

Installing as a package

yarn add react-next-carousel

Usage

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import "react-next-carousel/lib/styles/carousel.min.css"; // requires a loader
import { Carousel } from 'react-next-carousel';

class DemoCarousel extends Component {
   const slides = [
    "https://fastly.picsum.photos/id/11/2500/1667.jpg?hmac=xxjFJtAPgshYkysU_aqx2sZir-kIOjNR9vx0te7GycQ",
    "https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s",
    "https://fastly.picsum.photos/id/12/2500/1667.jpg?hmac=Pe3284luVre9ZqNzv1jMFpLihFI6lwq7TPgMSsNXw2w",
    "https://fastly.picsum.photos/id/27/3264/1836.jpg?hmac=p3BVIgKKQpHhfGRRCbsi2MCAzw8mWBCayBsKxxtWO8g",
    "https://fastly.picsum.photos/id/28/4928/3264.jpg?hmac=GnYF-RnBUg44PFfU5pcw_Qs0ReOyStdnZ8MtQWJqTfA",
    "https://fastly.picsum.photos/id/29/4000/2670.jpg?hmac=rCbRAl24FzrSzwlR5tL-Aqzyu5tX_PA95VJtnUXegGU",
   ]
    render() {
        return (
            <Carousel slides={slides}/>
        );
    }
});

ReactDOM.render(<DemoCarousel />, document.querySelector('.demo-carousel'));

// Don't forget to include the css in your page

// Using webpack or parcel with a style loader
// import styles from 'react-responsive-carousel/lib/styles/carousel.min.css';

// Using html tag:
// <link rel="stylesheet" href="<NODE_MODULES_FOLDER>/react-responsive-carousel/lib/styles/carousel.min.css"/>

Props

NameValueDescription
autoPlaybooleanChange the slide automatically based on interval prop.
intervalnumberInterval in milliseconds to automatically go to the next item when autoPlay is true, defaults to 2000.
showCarouselArrowbooleanEnable previous and next arrow, defaults to true.
showIndicatorsbooleanEnable indicators to select items, defaults to true.
showThumbsbooleanEnable thumbs, defaults to true.
thumbWidthnumberWidth of the thumb, defaults to 80.
widthnumber or stringThe width of the carousel, defaults to 100%.

Keywords

FAQs

Package last updated on 19 Sep 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc