@moonwalker/orbit-ui-react-carousel
v1.14.0-beta.0
Published
React UI carousel component
Downloads
4
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]}
/>
)