Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
<FileUploadProgress
label="File Upload Progress"
value="36"
cancelLabel="File Upload Progress"
retryLabel="File Upload Progress"
/>
// 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 {
Theme-aware, responsive file upload progress component. Change any prop and inspect the server-rendered component immediately.File Upload Progress
Configure File Upload Progress
<FileUploadProgress
label="File Upload Progress"
value="36"
cancelLabel="File Upload Progress"
retryLabel="File Upload Progress"
/>payload.
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
<FileUploadProgress
label="File Upload Progress"
value="36"
cancelLabel="File Upload Progress"
retryLabel="File Upload Progress"
/>
A tighter variation for dashboards, side panels, tables, and operational interfaces.
<FileUploadProgress
size="sm"
label="Compact example"
value="60"
cancelLabel="Compact example"
retryLabel="Compact example"
/>
A more expressive variation using additional data, stronger emphasis, and optional states.
<FileUploadProgress
size="lg"
label="Advanced example"
value="84"
cancelLabel="Advanced example"
retryLabel="Advanced example"
/>
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.<FileUploadProgress
@cancel='console.log(payload)'
@retry='console.log(payload)'
@complete='console.log(payload)'
/>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)
})All content and behavior shown above is supplied through these props and slots.
| Prop | Type | Default | Required |
|---|---|---|---|
size | string | "default" | No |
color | string | "primary" | No |
label | string | "Progress" | No |
value | number | 50 | No |
max | number | 100 | No |
showValue | boolean | true | No |
fileName | string | "" | No |
fileSize | string | "" | No |
uploadedSize | string | "" | No |
status | string | "uploading" | No |
cancelLabel | string | "Cancel upload" | No |
retryLabel | string | "Retry upload" | No |
class | string | "" | No |