0.1.2 • Published 5 years ago

@placardi/carousel v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@placardi/carousel

A carousel can be used to display a set of images one at a time.

Installation

npm i @placardi/carousel

Dependencies

  • react
  • styled-components
  • @placardi/theme

Usage

Basic usage

In order to use the carousel component, wrap the application in global theme provider from @placardi/theme. Then, use the carousel as any regular component.

import React, { FC } from 'react';
import ThemeProvider from '@placardi/theme';
import Carousel, { CarouselItem } from '@placardi/carousel';

const App: FC = () => (
  <ThemeProvider>
    <Carousel>
      <CarouselItem>
        <img src="img1.jpeg" />
      </CarouselItem>
      <CarouselItem>
        <img src="img2.jpeg" />
      </CarouselItem>
    </Carousel>
  </ThemeProvider>
);

export default App;
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago