1.14.0-beta.0 • Published 6 years ago

@moonwalker/orbit-ui-react-carousel v1.14.0-beta.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

ui-react-carousel

React UI Carousel component.

Instalation

npm install @moonwalker/orbit-ui-react-carousel

or

yarn add @moonwalker/orbit-ui-react-carousel

Peer dependencies

  • react
  • react-dom
  • prop-types
  • smooth-scroll-into-view-if-needed

Polyfills

Usage

import { Carousel } from '@moonwalker/orbit-ui-react-carousel';

const Item = ({ text, index }) => (
  <div
    style={{
      width: '100px'
      ...(index > 0 && { marginLeft: '8px' })
    }}
  >
    {text}
  </div>
)

export const App = () => (
  <Carousel
    items={[Item1, Item2]}
  />
)