Upload
Upload files through a file input form element.
Import
js
import { MpUpload, MpUploadList } from '@mekari/pixel3'
Playground
API
MpUpload
Props
Events
Name | Type | Default |
---|---|---|
id | string | - |
file-list | Files[] | - |
accept | string | - |
name | string | - |
placeholder | string | No file selected |
loading-text | string | Uploading... |
button-text | string | Choose file |
is-loading | boolean | false |
is-disabled | boolean | false |
is-invalid | boolean | false |
is-required | boolean | false |
is-reset-on-change | boolean | false |
is-multiple | boolean | false |
is-full-width | boolean | false |
MpUploadList
Props
Events
Name | Type | Default |
---|---|---|
id | string | - |
status | success | error | loading | success |
title | string | - |
subtitle | string | - |
icon-name | IconName | img |
icon-color | ColorToken | string | gray.600 |
icon-variant | outline | duotone | fill | outline |
is-show-download-button | boolean | true |
is-show-remove-button | boolean | true |
is-show-cancel-button | boolean | true |