@moonwalker/orbit-ui-react-carousel

1.14.0-beta.0 • Public • Published

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

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.14.0-beta.0

License

MIT

Unpacked Size

58.9 kB

Total Files

17

Last publish

Collaborators

  • marlun78
  • haris.moonwalker
  • vio
  • speier
  • rucsi6
  • thetinman
  • moonwalker-bot
  • myra-moonwalker
  • moonwalkergaz
  • oisinmacgiollachuda