@cmds/gallery-view

Used for displaying records as individual cards in a gallery.

Usage no npm install needed!

<script type="module">
  import cmdsGalleryView from 'https://cdn.skypack.dev/@cmds/gallery-view';
</script>

README

GalleryView"> GalleryView

npm package

Used for displaying records as individual cards in a gallery.

GalleryView

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.