Skip to content

Commit 26aeca3

Browse files
committed
feat(Thumbnail): image class name prop
1 parent a59f0ae commit 26aeca3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Thumbnail/Thumbnail.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export interface ThumbnailProps<F> extends ClickableDivProps {
5454
* If true, will prevent throttling.
5555
*/
5656
isShownOnLoad?: boolean;
57+
/**
58+
* Class for the thumbnail image.
59+
*/
60+
imageClassName?: string;
5761
/**
5862
* Callback fired when the name is edited and saved.
5963
* @param newName The new name to set on the file.
@@ -80,6 +84,7 @@ export function Thumbnail<F extends FileLike>({
8084
onEditingChange,
8185
throttle,
8286
isShownOnLoad,
87+
imageClassName,
8388
className,
8489
disabled,
8590
onFocus,
@@ -132,6 +137,7 @@ export function Thumbnail<F extends FileLike>({
132137
src={file.thumbnail}
133138
alt={file.name}
134139
onRenderLoading={() => <FileSkeleton className="ui__thumbnail__image__skeleton" />}
140+
className={imageClassName}
135141
/>
136142
</div>
137143
<div className="ui__thumbnail__controls">

0 commit comments

Comments
 (0)