Skip to main content

Thumbnail

Renders a card representing an interactive file or image thumbnail. Contains a filetype icon, title and image, with an actions menu

Storybook Docs

Props

NameTypeDefaultDescription
actionsIAction<IThumbnail>-Array of actions for the thumbnail
...--extends IThumbnail

IThumbnail

AttributeTypeDescription
iconTypeIcon MapIcon type of the thumbnail
id *number | stringId of the thumbnail
imagestringImage of the thumbnail
labelstringLabel of the thumbnail
selectedbooleanHighlights the thumbnail as a selected item
onClick() => voidCalled when the thumbnail is clicked

IThumbnailData

Corresponds to IThumbnail | IThumbnail[]

IThumbnailAction

Corresponds to IAction<IThumbnailData>