Carousel.js
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from 'react';
import {
Row,
Col,
Breadcrumb,
BreadcrumbItem,
UncontrolledCarousel,
} from 'reactstrap';
import firstSlide from '../../../images/slides/1.jpg';
import secondSlide from '../../../images/slides/2.jpg';
import thirdSlide from '../../../images/slides/3.jpg';
const carouselItems = [
{ src: firstSlide, caption: '' },
{ src: secondSlide, caption: '' },
{ src: thirdSlide, caption: '' },
];
const Carousel = () => (
<div>
<Breadcrumb>
<BreadcrumbItem>YOU ARE HERE</BreadcrumbItem>
<BreadcrumbItem active>UI Carousel</BreadcrumbItem>
</Breadcrumb>
<p>
The carousel is a slideshow for cycling through a series of content, built with
CSS 3D transforms and a bit of JavaScript. It works with a series of images, text,
or custom markup. It also includes support for previous/next controls and indicators.
</p>
<Row>
<Col>
<UncontrolledCarousel captionTex={null} items={carouselItems} />
</Col>
</Row>
</div>
);
export default Carousel;