react-carousel-lite
v1.0.5
Published
A tiny React Carousel Component.
Downloads
2
Readme
React Carousel
A tiny React Carousel Component.
Quick Start
install
yarn add react-carousel-lite -D
import styles
import 'react-carousel-lite/dist/index.css'
Usage
import Carousel from 'react-carousel-lite'
export function App() {
return (
<Carousel autoplay>
// {...content}
</Carousel>
)
}
Props
- autoplay
default: false
- dotPosition
export type DotPosition = 'left' | 'right' | 'top' | 'bottom'
- easing
css animationTimingFunction
- effect
export type EffectType = 'slide' | 'fade'
- interval
ms
afterChange/beforeChange
children