UNPKG

@skillbill/vuelace-3

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/@skillbill%2Fvuelace-3.svg)](https://badge.fury.io/js/@skillbill%2Fvuelace-3)

26 lines (24 loc) 595 B
import { VLInputRuleType } from '../utils/types'; export interface VLFileInputErrorEvent { file?: string; size?: number; count?: number; type?: string; message: string; } export interface VLFileInputProps { name?: string; label: string; placeholder?: string; error?: string; helpText?: string; required?: boolean; disabled?: boolean; accept?: string; multiple?: boolean; acceptedTypes?: string[]; maxFileSize?: number; fileLimit?: number; rules?: VLInputRuleType[]; onError?: (error: VLFileInputErrorEvent) => void; }