NV NVIDIA Elements Catalog Starters GitHub System Themes Getting Started Getting Started Installation CLI MCP Skills Lint GitHub Integrations Getting Started Angular Bundles CDN Custom Elements Eleventy Golang HTMX + Go Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Pi Preact React SolidJS Sphinx Svelte TypeScript Vue About What’s New Changelog Metrics Support Accessibility Contributions Requests Migration Sitemap Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions DESIGN.md Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Codeblock Color Combobox Copy Button Datagrid Getting Started Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drag Handle Drawer Dropdown Dropdown Group Dropzone File Format Bytes Datetime Number Relative Time Truncate Forms Getting Started Validation Actions Control Gauge Icon Icon Button Input Input Group Logo Markdown Markdown CSS Media Controller Pause Button Playback Rate Select Loop Button Mute Button Media PiP Button Seek Button Time Range Volume Range Full-screen Button Menu Month Monaco Input Diff Input Monaco Editor Diff Editor Problems Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Viewport Viewport Gridlines Minimap Zoom Range Week Patterns Agent Authentication Browse Chat Code Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Dropzone

stable:  2.15.4 Coverage: 75.00% Bundle: 19.4kb Lighthouse: 100 Axe Core Released: 1.29.0
Overview API Examples

<nve-dropzone>

Properties

PropertyAttributeDescriptionValues accept accept

Comma-separated file extensions or MIME types accepted by the dropzone.

string
composedLabel none

Text content from labels associated with the control.

string
defaultValue none

The initial value used when the parent form resets.

string
disabled disabled

This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. MDN

true The element has a disabled state and does not accept interaction.
false The element has an enabled state and accepts interaction.
form none
i18n i18n

Enables internal string values to update for internationalization.

labels none
max max
number
null
maxFileSize max-file-size

File size limit in bytes.

number
maxLength maxlength
number
min min
number
null
minLength minlength
number
name name

The name submitted with the control value as part of the form data. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/name

string
noValidate novalidate

Disables constraint validation for this control. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/novalidate

true
false
pattern pattern

Defines the pattern that text values must match. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern

string
readOnly readonly

Indicates whether the user can change the element's value while it remains visible and focusable. MDN

true The element has a readonly state: the user cannot change its value, but can still focus and copy it.
false The element allows editing and the user can change its value through interaction.
required required

Requires a value before the parent form can submit. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required

true
false
step step

Defines the value granularity for numeric inputs. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step

number
null
type none

The control type.

string
validationMessage none

The validation message shown when the control is invalid. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage

string
validity none
value none

Files selected or dropped by the user. Assign files through the JavaScript property; the HTML value attribute is not supported.

File[]
valueAsNumber none

The current value parsed as a number.

number
valueAsString none

The current value serialized as a string.

string
willValidate none

Indicates whether the control participates in constraint validation. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate

true
false

Events

EventDescription change

Dispatched when the value has changed (files located in event.target)

Slots

SlotDescription default

Custom messaging that replaces the default upload instructions.

icon

Custom icon that replaces the default upload icon.

Methods

MethodSignaturesDescription checkValidity
checkValidity(): boolean

Checks whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity

reportValidity
reportValidity(): boolean

Reports whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity

reset
reset(): void

Resets the control value to its initial value.

setCustomValidity
setCustomValidity(message: string): void

CSS Properties

Css-propertyDescription --background --border-color --border-radius --color --min-height --padding

CSS Parts

Css-partDescription icon

The upload icon element