Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carousel-component

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carousel-component

A vuejs and reactjs carousel component.

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

Dependency Status devDependency Status Build Status npm version Downloads

A vuejs and reactjs carousel component.

features
  • vuejs component
  • reactjs component
  • custom component
install

npm i carousel-component

<link rel="stylesheet" href="./node_modules/carousel-component/carousel.min.css" />
vuejs component demo

npm i vue vue-class-component

import "carousel-component/vue";
<carousel :data="data"
    timeout="500"
    interval="3000"
    count="5"
    width="200"
    height="150">
</carousel>

the online demo: https://plantain-00.github.io/carousel-component/demo/vue/index.html

reactjs component demo
import { Carousel } from "carousel-component/react";
<Carousel data={this.data}
    timeout={500}
    interval={3000}
    count={5}
    width={200}
    height={150}>
</Carousel>

the online demo: https://plantain-00.github.io/carousel-component/demo/react/index.html

properties and events of the component
nametypedescription
dataCarouselData[]the data of the carousel
timeoutnumberthe animation time in milliseconds
intervalnumberthe movement time in milliseconds
countnumberthe item count at most
widthnumberwidth of an item
heightnumberheight of items
type CarouselData = {
    component: string | Function; // the item component, for vuejs, it is the component name, for reactjs, it is the class object
    data: any; // the data will be passed to the component as `data` props
};
change logs
// v2
import "carousel-component/vue";

// v1
import "carousel-component/dist/vue";

FAQs

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

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