@cebus/react-carousel
v0.0.3
Published
An carousel component used to display a collection of images.
Downloads
15
Readme
Carousel
The Carousel component is used to display a collection of images.
Use
- Install the @cebus/react-carousel component.
Using NPM
npm install @cebus/react-carousel
Using Yarn
yarn add @cebus/react-carousel
Install the @cebus/react-provider and our theme tokens from @cebus/react-theme
Set up the provider in your app:
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Integrate the Carousel component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Carousel } from '@cebus/react-carousel'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Carousel>
<img src='...'/>
</Carousel>
<Provider>
)
}
API
To learn more about the Carousel API take a look at the Carousel Interface file.