0.1.4 • Published 6 years ago
react-image-cards-carousel v0.1.4
React Image Cards Carousel
Overview
Horizontal image cards carousel. Posibility to adjust general styling. Written in TypeScript.
Installation
npm install --save react-image-cards-carouselComponents
CardsRow
The CardsRow component renders a horizontal carousel of the given amount of items.
ItemType
interface ItemType {
image: string;
}Props
| Name | Type | Default Value | Description |
|---|---|---|---|
| backgroundColor | string | white | Sets the background color of the carousel container |
| cardBorderRadius | string | 8px | Sets the bordr-radius css property for the cards |
| cardWidth | string | 400px | Sets the width css property for the cards |
| height | string | 500px | Sets the height css property of the carousel container |
| items | ItemType | required | Sets the array of items to display on the carousel |