1.0.13 • Published 4 years ago

react-card-slide v1.0.13

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

geeknection/react-card-slide

React Jsx component used to create Card Item and Slide of Card Items

preview.jpg

Getting started

yarn add react-card-slide

or

npm install react-card-slide --save

Usage

Example with slide

import { CardSlide } from 'react-card-slide/dist';
  <CardSlide items={[{
        cardName: 'Card Name',
        cardDescription: 'Description',
        cardTotal: 0,
        showBodyImage: true,
        bodyImage: 'https://via.placeholder.com/350x350'
      },{
        cardName: 'Card Name 2',
        cardDescription: 'Description 2',
        cardTotal: 1
      },{
        cardName: 'Carde Name 3',
        cardDescription: 'Description 3',
        cardTotal: 2
      }]}/>

Example without slide

import { CardSlideItem } from 'react-card-slide/dist';
  <CardSlideItem
	cardName='Card Name'
	cardDescription='Description',
	cardTotal={0},
	showBodyImage={true},
	bodyImage='https://via.placeholder.com/350x350'/>

Props


items

Used to render layout list of CardSlide.

TypeRequired
ArrayYes

cardSelected

Used to know what is CardSlideItem that will show in slide list.

TypeRequired
BooleanNo

cardHeaderIcon

Icon that will be show on top-left of header CardSlideItem.

TypeRequired
ImageYear

cardName

Card name that will be show on top-left of header CardSlideItem.

TypeRequired
StringYes

cardDescription

Card description that will be show on body of CardSlideItem.

TypeRequired
StringNo

cardTotal

Total value that will be show on body of CardSlideItem.

TypeRequired
NumberNo

cardData

Graphic data that will be show on body of CardSlideItem.

TypeRequired
ArrayNo

cardGraphLineColor

Line that is defined to points in Graphic (In future).

TypeRequired
StringNo

cardGraphBgColor

Background color of Graphic (In future).

TypeRequired
StringNo

showFooter

Show footer in CardSlideItem.

TypeRequired
BooleanNo

showBodyImage

Show image on body of CardSlideItem.

TypeRequired
BooleanNo

bodyImage

Image body of CardSlideItem.

TypeRequired
ImageNo

showBodyText

Show card description on body of CardSlideItem.

TypeRequired
BooleanNo

Contributors

This module was extracted from React Js core. Please reffer to https://github.com/geeknection/react-card-slide/graphs/contributors for the complete list of contributors.

License

The library is released under the MIT licence. For more information see LICENSE.

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago