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

0.0.3 • Public • Published

Carousel

The Carousel component is used to display a collection of images.

Use

  1. Install the @cebus/react-carousel component.

Using NPM

npm install @cebus/react-carousel

Using Yarn

yarn add @cebus/react-carousel
  1. Install the @cebus/react-provider and our theme tokens from @cebus/react-theme

  2. 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>
  )
}
  1. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @cebus/react-carousel

Weekly Downloads

7

Version

0.0.3

License

MIT

Unpacked Size

113 kB

Total Files

126

Last publish

Collaborators

  • czearing
  • pongobuild