// 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") ?? "File Upload Progress" state playground_value = Number(ctx.url.searchParams.get("pg_value") ?? "36") state playground_max = Number(ctx.url.searchParams.get("pg_max") ?? "100") state playground_showValue = (ctx.url.searchParams.get("pg_showValue") ?? "true") === "true" state playground_fileName = ctx.url.searchParams.get("pg_fileName") ?? "" state playground_fileSize = ctx.url.searchParams.get("pg_fileSize") ?? "" state playground_uploadedSize = ctx.url.searchParams.get("pg_uploadedSize") ?? "" 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 outputsTheme readyResponsive
Interactive playground

Configure File Upload Progress

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

Live preview
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
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
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
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
} }