Skip to content

react-cards-stack : A react for creating cards stack for a quiz.

License

Notifications You must be signed in to change notification settings

abhisharkjangir/react-cards-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-cards-stack

A react component for creating cards stack for a quiz.

ScreenShot

Note : Screenshot source http://wordbook.imabhi.in

#Installation

npm install react-cards-stack --save

#Usage

import Reactcardstack from 'react-cards-stack'

class Yourcomponent extends React.Component {
  render(){
    return (
      <Reactcardstack images={<Pass your images array here>} />
    )
  }

 export Yourcomponent;

#Props

  • images : An array of images for e.g. ['imgurl1', 'imgurl2']
  • imgclass : "String" - CSS
  • postivebtnlabel : "String" | default - Yes
  • negativebtnlabel : "String" | default - No
  • onstackendfn : "Function" | Will be called on Stack End | Note : Will only works if 'infinite' is set 'false'
  • postivebtnclass : "String" - CSS
  • negativebtnclass : "String" - CSS
  • query : "String" - For specifying message
  • queryclass : "String" - CSS
  • effect : "String" | default - krisna | Effect Ref: https://tympanus.net/Development/CardStackEffects/
  • infinite : "Boolean" | default - false | Note : If 'infinite' is 'true' then onstackendfn won't be invoke.

#Upcoming Features

  • Animations delay and duration control
  • 'onstackendfn' will get object of +ve & -ve response count.

#Feature Request

Drop a mail on [email protected] for any new feature request.

About

react-cards-stack : A react for creating cards stack for a quiz.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published