You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
364 B
24 lines
364 B
5 years ago
|
---
|
||
|
id: usage
|
||
|
title: Usage
|
||
|
---
|
||
|
|
||
|
Simple carousel that show one item per slide.
|
||
|
|
||
|
```jsx
|
||
|
import React from 'react';
|
||
|
import ReactDOM from 'react-dom';
|
||
|
import { Carousel } from '@trendyol/react-carousel';
|
||
|
import { Item } from './yourItem';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Carousel>
|
||
|
<Item />
|
||
|
<Item />
|
||
|
<Item />
|
||
|
<Item />
|
||
|
</Carousel>,
|
||
|
document.getElementById('root'),
|
||
|
);
|
||
|
```
|