Skip to main content

Thumbnail Grid

Renders a grid of Thumbnails with an ActionBar displaying mass actions on selected thumbnails

Storybook Docs

Props

NameTypeDefaultDescription
thumbnails *IThumbnail[]-Array of objects to render as <Thumbnail> in the grid
actionsIThumbnailAction[][]Array of IAction for individual thumbnails or mass action shown on the top ActionBar
selectedElementsText(numberOfSelectedElements: number) => string(n: number) => `${n} selected file${n > 1 ? 's' : ''}` Function used to generate the string shown in the ActionBar, when items are selected
onThumbnailClick(item: IThumbnail, index: number) => void-Called when a <Thumbnail> is clicked
...--extends SimpleGrid props