Skip to content

Upload

Upload files through a file input form element.

Import

js
import { MpUpload, MpUploadList } from '@mekari/pixel3'

Playground

API

MpUpload

Props
Events
NameTypeDefault
id
Id of upload.
string -
file-list
List of files for input.
Files[] -
accept
List of file types for input.
string -
name
Name for input.
string -
placeholder
Placeholder for input.
stringNo file selected
loading-text
Text in loading state.
stringUploading...
button-text
Text in button upload.
stringChoose file
is-loading
If true, show loading state.
booleanfalse
is-disabled
If true, upload will be disable.
booleanfalse
is-invalid
If true, upload will be invalid.
booleanfalse
is-required
If true, mark as required.
booleanfalse
is-reset-on-change
If true, input value will reset when file change.
booleanfalse
is-multiple
If true, input receive multiple files to select.
booleanfalse
is-full-width
If true, upload will have full width.
booleanfalse

MpUploadList

Props
Events
NameTypeDefault
id
Id of upload list.
string -
status
Status of upload list.
success | error | loadingsuccess
title
Title of upload list.
string -
subtitle
Subtitle of upload list.
string -
icon-name
Icon name for upload list.
IconNameimg
icon-color
Icon color for upload list.
ColorToken | stringgray.600
icon-variant
Icon variant for upload list.
outline | duotone | filloutline
is-show-download-button
If true, show download button.
booleantrue
is-show-remove-button
If true, show remove button.
booleantrue
is-show-cancel-button
If true, show cancel button.
booleantrue

Usage

With Upload List