Files
twenty/packages/twenty-docs/l/fr/twenty-ui/input/image-input.mdx
T
github-actions[bot] 8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

43 lines
2.2 KiB
Plaintext

---
title: Saisie Image
image: /images/user-guide/objects/objects.png
---
<Frame>
<img src="/images/user-guide/objects/objects.png" alt="Header" />
</Frame>
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { SandpackEditor} from '@site/src/ui/SandpackEditor'
import imageInputCode from '!!raw-loader!@site/src/ui/input/components/imageInputCode.js'
Permet aux utilisateurs de télécharger et de supprimer une image.
<Tabs>
<Tab title="Usage">
```jsx
import { ImageInput } from "@/ui/input/components/ImageInput";
export const MyComponent = () => {
return <ImageInput/>;
};
```
</Tab>
<Tab title="Props">
| Propriétés | Type | Description |
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| photo | chaîne | L'URL source de l'image |
| onUpload | fonction | La fonction appelée lors du téléchargement d'une nouvelle image par un utilisateur. Elle reçoit l'objet `File` comme paramètre. |
| onRemove | fonction | La fonction appelée lorsque l'utilisateur clique sur le bouton supprimer. |
| onAbort | fonction | La fonction appelée lorsque l'utilisateur clique sur le bouton annuler pendant le téléchargement de l'image. |
| isUploading | booléen | Indique si une image est en cours de téléchargement. |
| messageErreur | chaîne | Un message d'erreur facultatif à afficher sous l'entrée d'image. |
| désactivé | booléen | Si `true`, l'entrée entière est désactivée et les boutons ne sont pas cliquables. |
</Tab>
</Tabs>