---
title: "File Thumbnail"
slug: file-thumbnail
category: component
type: technical-information
version: 20.0.0
tokens: 365
source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-file-thumbnail--technical-information.txt
---
# File Thumbnail
## FileThumbnail
This component extends all the native `
` attributes.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| `disabled` | `boolean` | No | undefined | Whether the component is disabled. |
| `dismissible` | `boolean` | No | undefined | Whether the component holds a dismiss button. |
| `error` | `string` | No | undefined | The file error message to display. |
| `file` | `File` | Yes | undefined | The current File object. |
| `i18n` | `Partial` | No | undefined | Internal translations override. |
| `locale` | `'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl' | 'pt'` | No | undefined | The locale used for size formatting and the translation of the internal elements. |
| `onFileRemove` | `(detail: FileThumbnailRemoveDetail) => void` | No | undefined | Callback fired when the file is removed. |
| `progress` | `number` | No | undefined | The file upload progress. |
## Enums
### FILE_THUMBNAIL_I18N
- `cancelButton` = `fileThumbnail.file.cancel.button`
- `deleteButton` = `fileThumbnail.file.delete.button`
- `progressBar` = `fileThumbnail.file.progressBar`
## CSS Variables
| Variable | Default value |
|---|---|
| `--ods-file-thumbnail-border-color` | `var(--ods-semantic-color-border-container)` |
| `--ods-file-thumbnail-object-fit` | `contain` |
| `--ods-file-thumbnail-preview-size` | `32px` |
| `--ods-state-is-disabled-opacity` | `var(--ods-semantic-opacity-disabled)` |