
- استخدام
- المحددات
نسخ
اسأل الذكاء الاصطناعي
import { ImageInput } from "@/ui/input/components/ImageInput";
export const MyComponent = () => {
return <ImageInput/>;
};
| المحددات | النوع | الوصف |
|---|---|---|
| صورة | نص | 3946482746 45352F31 274435483129 27442544432A3148464A |
| onUpload | دالة | The function called when a user uploads a new image. It receives the File object as a parameter |
| onRemove | دالة | The function called when the user clicks on the remove button |
| onAbort | دالة | The function called when a user clicks on the abort button during image upload |
| isUploading | قيمة منطقية | Indicates whether an image is currently being uploaded |
| errorMessage | نص | An optional error message to display below the image input |
| معطل | قيمة منطقية | If true, the entire input is disabled, and the buttons are not clickable |