@pndr/gallery-view
v0.8.0
Published
Used for displaying records as individual cards in a gallery.
Downloads
4
Readme
GalleryView
Used for displaying records as individual cards in a gallery.
Getting started
npm install @cmds/gallery-view --save
Prop Types
| Property | Type | Required? | Description |
|:---|:---|:---:|:---|
| id | String | ✓ | Unique id for the instance of this view |
| cardCount | Role | ✓ | The amount of cards to be rendered |
| cardHeight | Number | ✓ | Height of the cards |
| cardWidth | Number | | Width of the cards. Defaults to 240
|
| cardRenderer | Function | | Callback invoked whenever one of the cards get's rendered: ({index: number}): jsx
|
More information
This component is designed and developed as part of Cosmos Design System.