🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

rmc-m-carousel

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-m-carousel

React Mobile Carousel Component for web and react-native

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
8
-27.27%
Maintainers
1
Weekly downloads
 
Created
Source

React Mobile Carousel Component (web and react-native)

react node version npm download

Screenshots

Usage

npm install rmc-m-carousel
import Carousel from 'rmc-m-carousel';

<Carousel>
  <a target="_blank" rel="nofollow me noopener noreferrer" href="https://www.baidu.com">
    <img src="//d3kpm7yklociqe.cloudfront.net/ext/theme/20181207_banner_jpgwinter/banner.jpg" alt=""/>
  </a>
  <a target="_blank" rel="nofollow me noopener noreferrer" href="https://www.baidu.com">
    <img src="//d3kpm7yklociqe.cloudfront.net/ext/theme/20181210_banner_coat/banner.jpg" alt=""/>
  </a>
</Carousel>

see example

Development

npm i
npm start

Example

http://localhost:8000/examples/

install

npm download

API

属性说明类型默认值
selectedIndex手动设置当前显示的索引number0
indicator是否显示指示器Booleantrue
indicatorType指示器类型String ['dots', 'number']'dots'
autoplay是否自动切换Booleanfalse
autoplayInterval自动切换的时间间隔Number3000
dotStyle指示点样式Object
dotActiveStyle激活的指示点样式Object
dotClickSwipe点击指示点切换Objecttrue
speed滑动灵敏度number500
beforeChange切换面板前的回调函数(from: number, to: number): void
afterChange切换面板后的回调函数(current: number): void

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-m-carousel is released under the MIT license.

Keywords

react

FAQs

Package last updated on 16 Oct 2019

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