IFileFieldListItemProps

interface
Form & Input

Props for the list-style file item card rendered inside FileField — mirrors IFileFieldDragNDropItemProps with the same file, index, progress, icon overrides and showSize options.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

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.

file
required
File
The native File object this list item represents.
index
required
number
Zero-based index of the file in the selection.
progress
number
Upload progress from 0 to 100.
fileIcon
string
Override the default file type icon.
removeIcon
string
Override the default remove icon.
downloadIcon
string
downloadable
boolean
disabled
boolean
Disable interaction with this list item.
readonly
boolean
Render in read-only mode (no remove action).
showSize
boolean | 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.

List item with progress and binary size display

vue