// Generated by scripts/generate-showcase.mjs. Do not edit directly. page FileUploadProgressDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_label = ctx.url.searchParams.get("pg_label") ?? "Uploading archive" state playground_value = ctx.url.searchParams.get("pg_value") ?? "42" state playground_max = ctx.url.searchParams.get("pg_max") ?? "100" state playground_showValue = ctx.url.searchParams.get("pg_showValue") ?? "true" state playground_fileName = ctx.url.searchParams.get("pg_fileName") ?? "design-system.zip" state playground_fileSize = ctx.url.searchParams.get("pg_fileSize") ?? "20 MB" state playground_uploadedSize = ctx.url.searchParams.get("pg_uploadedSize") ?? "8.4 MB" state playground_status = ctx.url.searchParams.get("pg_status") ?? "uploading" state playground_cancelLabel = ctx.url.searchParams.get("pg_cancelLabel") ?? "File Upload Progress" state playground_retryLabel = ctx.url.searchParams.get("pg_retryLabel") ?? "File Upload Progress" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "File Upload Progress" description = "Theme-aware, responsive file upload progress component." } view {
Base component

File Upload Progress

Theme-aware, responsive file upload progress component.

13 props0 slots3 eventsTheme readyResponsive
Interactive playground

Configure File Upload Progress

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

Live preview
Component code
<FileUploadProgress
  label="Uploading archive"
  value="42"
  fileName="design-system.zip"
  fileSize="20 MB"
  uploadedSize="8.4 MB"
  cancelLabel="File Upload Progress"
  retryLabel="File Upload Progress"
/>
Component props13 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Basic usage

Uploading file

Show an active upload with file metadata and a cancel action.

01
Live preview
Component usage.wrn
<FileUploadProgress
  label="Uploading archive"
  value="42"
  fileName="design-system.zip"
  fileSize="20 MB"
  uploadedSize="8.4 MB"
  cancelLabel="File Upload Progress"
  retryLabel="File Upload Progress"
/>
Progress

Starting upload

Communicate that a newly queued file has begun uploading.

02
Live preview
Component usage.wrn
<FileUploadProgress
  size="sm"
  label="Preparing upload"
  value="2"
  fileName="product-images.tar"
  fileSize="48 MB"
  uploadedSize="640 KB"
  cancelLabel="Compact example"
  retryLabel="Compact example"
/>
Progress

Nearly complete

Keep progress and transferred size readable near completion.

03
Live preview
Component usage.wrn
<FileUploadProgress
  size="lg"
  label="Uploading video"
  value="92"
  fileName="launch-video.mp4"
  fileSize="200 MB"
  uploadedSize="184 MB"
  cancelLabel="Advanced example"
  retryLabel="Advanced example"
/>
States

Upload complete

Confirm a successful upload with a clear completion state.

04
Live preview
Component usage.wrn
<FileUploadProgress
  size="lg"
  label="Uploaded successfully"
  value="100"
  fileName="quarterly-report.pdf"
  fileSize="4.8 MB"
  uploadedSize="4.8 MB"
  status="complete"
  cancelLabel="Advanced example"
  retryLabel="Advanced example"
/>
States

Upload failed

Explain failure and provide a retry action.

05
Live preview
Component usage.wrn
<FileUploadProgress
  size="lg"
  label="Network connection lost"
  value="33"
  fileName="customer-export.csv"
  fileSize="36 MB"
  uploadedSize="12 MB"
  status="error"
  cancelLabel="Advanced example"
  retryLabel="Advanced example"
/>
States

Upload cancelled

Preserve file context and allow a cancelled upload to restart.

06
Live preview
Component usage.wrn
<FileUploadProgress
  size="lg"
  label="Upload cancelled"
  value="22"
  fileName="brand-assets.fig"
  fileSize="72 MB"
  uploadedSize="16 MB"
  status="cancelled"
  cancelLabel="Advanced example"
  retryLabel="Advanced example"
/>
Component events

Events

Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.

@cancelFires when the current operation is cancelled.
@retryFires when the component emits the retry event.
@completeFires when the component's operation completes.
Event listener.js
const component = document.querySelector('[data-wrn-events]')

component.addEventListener('cancel', (event) => {
  console.log(event.detail)
})
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
} }