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

0.0.4 • Public • Published

Carousel

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

Use

  1. Install the @pongo-ui/react-carousel component.

Using NPM

npm install @pongo-ui/react-carousel

Using Yarn

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

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Carousel component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Carousel } from '@pongo-ui/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 @pongo-ui/react-carousel

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

114 kB

Total Files

134

Last publish

Collaborators

  • pongobuild
  • czearing