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
| Event | Payload | Description |
|---|---|---|
file | File | Emits when a new file is selected. |
Slots
| Slot | Description |
|---|---|
| default | Button label. |