TFile

type
Form & Input

Model-value type for <OrigamFileField>. Accepts a single File object, an array of File objects, or null when no file is selected.

TypeScript

Definition

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

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

File
A single browser File object — used when the multiple prop is false (default).
File[]
Array<File>
An array of File objects — used when the multiple prop is true.
null
No file is currently selected, or the selection has been cleared.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Single-file v-model

vue

Multi-file v-model

vue