Carousel.js 1.03 KB
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;