Skip to content

File Input

<vox-file-input> is a themed file picker that shows the selected file names and submits real files with the form.

html
<vox-file-input
  label="Module tarball"
  name="tarball"
  accept=".tar.gz"
  button-label="Choose a file"
></vox-file-input>

API

AttributeTypeDefaultDescription
labelstringField label
namestringForm field name
acceptstringAccepted file types
multiplebooleanfalseAllow multiple files
button-labelstringChoose a filePicker button text
notestringHelp text
required / disabledbooleanfalseNative states

Released under the Apache-2.0 License.