Skip to content

FileInput

FileInput

PFileInput wraps the native file input with a styled button.

Demo

Usage

<PFileInput @file="onFile">Upload</PFileInput>
methods: {
onFile(file) {
this.file = file;
},
}

Props

PFileInput passes attributes directly to the internal PButton. Use type, size, and disabled as needed.

Events

EventPayloadDescription
fileFileEmits when a new file is selected.

Slots

SlotDescription
defaultButton label.