File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ export interface ThumbnailProps<F> extends ClickableDivProps {
54
54
* If true, will prevent throttling.
55
55
*/
56
56
isShownOnLoad ?: boolean ;
57
+ /**
58
+ * Class for the thumbnail image.
59
+ */
60
+ imageClassName ?: string ;
57
61
/**
58
62
* Callback fired when the name is edited and saved.
59
63
* @param newName The new name to set on the file.
@@ -80,6 +84,7 @@ export function Thumbnail<F extends FileLike>({
80
84
onEditingChange,
81
85
throttle,
82
86
isShownOnLoad,
87
+ imageClassName,
83
88
className,
84
89
disabled,
85
90
onFocus,
@@ -132,6 +137,7 @@ export function Thumbnail<F extends FileLike>({
132
137
src = { file . thumbnail }
133
138
alt = { file . name }
134
139
onRenderLoading = { ( ) => < FileSkeleton className = "ui__thumbnail__image__skeleton" /> }
140
+ className = { imageClassName }
135
141
/>
136
142
</ div >
137
143
< div className = "ui__thumbnail__controls" >
You can’t perform that action at this time.
0 commit comments