Socket
Book a DemoInstallSign in
Socket

@maggioli-design-system/mds-input-upload

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-input-upload

mds-input-upload is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.

latest
npmnpm
Version
2.8.1
Version published
Maintainers
3
Created
Source

mds-input-upload

Properties

PropertyAttributeDescriptionTypeDefault
acceptacceptDefines the file types the file input should acceptstring''
maxFileSizemax-file-sizeSpecifies the max size of a single file that can be uploaded in MBnumber20
maxFilesmax-filesSpecifies the max number of files that can be uploadednumber1
sortsortSpecifies if the component should show a sort widget by status or date of upload, if not defined let user choose"date" | "status" | undefinedundefined

Events

EventDescriptionType
mdsInputUploadChangeEmits when the component files are changedCustomEvent<FileList | null>

Methods

getFiles() => Promise<FileList | null>

Returns a promise of files uploaded as Filelist or null if there's none

Returns

Type: Promise<FileList | null>

getFilesError() => Promise<FileError[] | null>

Returns a promise of files error or null if there's none

Returns

Type: Promise<FileError[] | null>

updateLang() => Promise<void>

Returns

Type: Promise<void>

CSS Custom Properties

NameDescription
--mds-input-upload-drag-area-background-colorSets the background-color of the drag area.
--mds-input-upload-drag-area-background-color-on-dragSet the background color of the drag area when a file is dragged over it.
--mds-input-upload-drag-area-borderSets the border of the drag area.
--mds-input-upload-drag-area-border-on-dragSet the border of the drag area when a file is dragged over it.
--mds-input-upload-min-colsSet the minimum number of columns for the file list.

Dependencies

Depends on

  • mds-text
  • mds-button
  • mds-progress
  • mds-tab
  • mds-tab-item
  • mds-file-preview

Graph

graph TD;
  mds-input-upload --> mds-text
  mds-input-upload --> mds-button
  mds-input-upload --> mds-progress
  mds-input-upload --> mds-tab
  mds-input-upload --> mds-tab-item
  mds-input-upload --> mds-file-preview
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  mds-tab-item --> mds-button
  mds-file-preview --> mds-button
  mds-file-preview --> mds-img
  mds-file-preview --> mds-icon
  mds-file-preview --> mds-text
  mds-file-preview --> mds-badge
  mds-img --> mds-icon
  mds-img --> mds-text
  mds-img --> mds-button
  mds-badge --> mds-text
  style mds-input-upload fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department

FAQs

Package last updated on 04 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.