@rax-ui/carousel
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.62 • Public • Published

display: Carousel family: Data Display

Carousel

轮播图

API

Props

名称 说明 类型 默认值
defaultSlideIndex 默认显示的索引 number 0
slideWidth 默认 slide 宽度 number, string
slideHeight 默认 slide 高度 number, string
hideIndicators 是否隐藏指示点 bool false
autoplay 是否自动切换 bool false
interval 自动切换的时间间隔 number 3000
onChange 切换面板后的回调函数 (current: number): void

CSS API

名称 说明
carousel__dot-wrapper 指示点层的样式
carousel__dot 指示点样式
carousel__dot--active 指示点被激活样式

Readme

Keywords

Package Sidebar

Install

npm i @rax-ui/carousel

Weekly Downloads

0

Version

1.0.0-beta.62

License

none

Unpacked Size

8.44 kB

Total Files

8

Last publish

Collaborators

  • lianmin
  • amdgigabyte
  • myronliu347