Name | isRequired | Type | Description |
---|---|---|---|
itemCount | YES | Integer | No of card components to be rendered |
renderCard | YES | Function callback | Render card component callback. Carries index of card. |
Find detailed use case in Examples section
render(){
return(
<CardDeck
itemCount={7}
style= {{ paddingTop: 200 }}
renderCard={index => {
return(
// return your custom component here
)
}} />
);
}