Carousels

Uncontrolled Carousels #

允许组件自我控制状态.

Controlled Carousels #

Props #

Carousel #

名称 类型 缺省值 描述
activeIndex number
controls boolean true
defaultActiveIndex number
direction 以下之一:'prev','next'
indicators boolean true
interval number 5000
nextIcon node
onSelect function
onSlideEnd function
pauseOnHover boolean true
prevIcon node
slide boolean true
wrap boolean true

CarouselItem #

名称 类型 缺省值 描述
active boolean false
animateIn boolean false
animateOut boolean false
caption node
direction 以下之一:'prev' , 'next'
index number
onAnimateOutEnd function

组件参考 #

React-Bootstrap官方文档: http://react-bootstrap.github.io/components.html#carousels