File Upload Progress | UI Showcase
WRNexus UI
Base component

File Upload Progress

Theme-aware, responsive file upload progress component.

13 props0 slots3 outputsTheme readyResponsive
Interactive playground

Configure File Upload Progress

Change any prop and inspect the server-rendered component immediately.

Live preview
File Upload Progress36%
Uploading securely…
Component code
<FileUploadProgress
  label="File Upload Progress"
  value="36"
  cancelLabel="File Upload Progress"
  retryLabel="File Upload Progress"
/>
Event outputInteract with the preview to inspect the typed payload.
Component props13 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
File Upload Progress36%
Uploading securely…
Component usage.wrn
<FileUploadProgress
  label="File Upload Progress"
  value="36"
  cancelLabel="File Upload Progress"
  retryLabel="File Upload Progress"
/>
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Compact example60%
Uploading securely…
Component usage.wrn
<FileUploadProgress
  size="sm"
  label="Compact example"
  value="60"
  cancelLabel="Compact example"
  retryLabel="Compact example"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Advanced example84%
Uploading securely…
Component usage.wrn
<FileUploadProgress
  size="lg"
  label="Advanced example"
  value="84"
  cancelLabel="Advanced example"
  retryLabel="Advanced example"
/>
Component outputs

Receive every typed component output

Use declarative output handlers in .wrn files or register a direct output handler from JavaScript. The canonical API exposes payload and does not require event.detail.

@cancelFires when the user cancels or dismisses the current workflow.
@retryFires when the component emits the retry event.
@completeFires when the component emits the complete event.
Declarative handlers.wrn
<FileUploadProgress
  @cancel='console.log(payload)'
  @retry='console.log(payload)'
  @complete='console.log(payload)'
/>
Direct output handlers.js
import { registerOutputHandler } from "@wrnexus/csr/outputs"

const component = document.querySelector("[data-ui-component=\"FileUploadProgress\"], [data-component=\"FileUploadProgress\"]")

if (component) registerOutputHandler(component, "cancel", (payload) => {
  console.log("cancel", payload)
})

if (component) registerOutputHandler(component, "retry", (payload) => {
  console.log("retry", payload)
})

if (component) registerOutputHandler(component, "complete", (payload) => {
  console.log("complete", payload)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
labelstring"Progress"No
valuenumber50No
maxnumber100No
showValuebooleantrueNo
fileNamestring""No
fileSizestring""No
uploadedSizestring""No
statusstring"uploading"No
cancelLabelstring"Cancel upload"No
retryLabelstring"Retry upload"No
classstring""No