IFileFieldDragNDropItemProps
interface
Form & Input
Props for the individual drag-and-drop file card rendered inside the FileField dropzone — exposes the file object, its index, upload progress, icon overrides, and disabled/readonly/showSize flags.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
Inheritance
Extends
Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- filerequiredFile
- The native File object this card represents.
- indexrequirednumber
- Zero-based index of the file in the selection.
- progressnumber
- Upload progress from 0 to 100. Drives an internal OrigamProgress bar.
- fileIconstring
- Override the default file icon shown on the card.
- removeIconstring
- Override the default remove/delete icon.
- downloadIconstring
- downloadableboolean
- disabledboolean
- Disable interaction with this file card.
- readonlyboolean
- Render the card in a read-only state (no remove action).
- showSizeboolean | 1000 | 1024
- Display the file size. Pass 1000 for SI units (kB) or 1024 for binary units (KiB).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Dropzone item with progress and size