The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
{/*
* _____ _
*|_ _|_ _____ _ __ | |_ _ _
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
* | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
* |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
* |___/
*
* This file is generated from the documentation data in packages/twenty-ui/generated.
* To update it, edit the component prop types or design tokens in twenty-ui and run:
* npx nx generate:ui twenty-docs
*/}
<ParamField body="abortLabel" type="string" default="Abort">
Label for the Abort action.
</ParamField>
<ParamField body="accept" type="string" default="image/*">
Native file picker filter. Defaults to image/*. The caller validates allowed formats.
</ParamField>
<ParamField body="aria-describedby" type="string">
Accessible description references for the hidden file input and selection buttons, combined with helperText and errorMessage.
</ParamField>
<ParamField body="aria-label" type="string">
Accessible name of the hidden file input. Defaults to uploadLabel.
</ParamField>
<ParamField body="aria-labelledby" type="string">
Accessible name reference for the hidden file input.
</ParamField>
<ParamField body="capture" type="boolean | "user" | "environment"">
Native device capture hint for the file picker.
</ParamField>
<ParamField body="className" type="string">
Class applied to the root element.
</ParamField>
<ParamField body="dir" type="string">
Text direction applied to both the root and hidden file input.
</ParamField>
<ParamField body="disabled" type="boolean" default="false">
Disables file selection, removal, and abort actions.
</ParamField>
<ParamField body="errorMessage" type="string | null">
Application error, displayed as an alert and associated with the selection controls.
</ParamField>
<ParamField body="form" type="string">
Native form identifier associated with the hidden file input.
</ParamField>
<ParamField body="helperText" type="string">
Application instructions, associated with the selection controls.
</ParamField>
<ParamField body="id" type="string">
Native identifier of the hidden file input.
</ParamField>
<ParamField body="inputRef" type="Ref<HTMLInputElement>">
Ref to the hidden single-file HTMLInputElement.
</ParamField>
<ParamField body="isUploading" type="boolean" default="false">
Marks the module busy. Selection and removal controls that would otherwise be enabled stay focusable but unavailable. Shows Abort when onAbort is supplied.
</ParamField>
<ParamField body="name" type="string">
Native name of the hidden file input.
</ParamField>
<ParamField body="onAbort" type="(() => void)">
Shows an abort action while uploading. It can cancel the first upload before a src exists.
</ParamField>
<ParamField body="onChange" type="ChangeEventHandler<HTMLInputElement, HTMLInputElement>">
Native file input change event, fired while the selected file is present and before the input resets. The input does not retain a file for form submission.
</ParamField>
<ParamField body="onFileSelect" type="((file: File) => void)">
Fires when a file is selected and receives its usable File after the input resets. Empty and canceled selections do not call it. Selection is disabled when omitted. The caller owns validation and uploading.
</ParamField>
<ParamField body="onRemove" type="(() => void)">
Requests removal of the current image. Removal is disabled without this callback or a nonempty src.
</ParamField>
<ParamField body="ref" type="Ref<HTMLDivElement>">
Ref to the root div element.
</ParamField>
<ParamField body="removeLabel" type="string" default="Remove">
Label for the Remove action.
</ParamField>
<ParamField body="render" type="ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, {}>">
Custom root element or render function. Supply root native attributes here and keep a non-interactive root.
</ParamField>
<ParamField body="required" type="boolean">
Native file input requirement. The input resets after selection, so the caller validates completed uploads.
</ParamField>
<ParamField body="src" type="string | null">
Resolved image URL. Empty or failed images show the image placeholder.
</ParamField>
<ParamField body="style" type="CSSProperties">
Inline style applied to the root element.
</ParamField>
<ParamField body="title" type="string">
Native title of the hidden file input.
</ParamField>
<ParamField body="uploadLabel" type="string" default="Upload">
Label for the preview, Upload action, and hidden file input.
</ParamField>