@moonwalker/orbit-ui-react-carousel

React UI carousel component

Usage no npm install needed!

<script type="module">
  import moonwalkerOrbitUiReactCarousel from 'https://cdn.skypack.dev/@moonwalker/orbit-ui-react-carousel';
</script>

README

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]}
  />
)