Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
<FileUploadProgress
label="Upload progress"
fileName="brand-guidelines.pdf"
fileSize="4.8 MB"
uploadedSize="2.4 MB"
/>
// 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") ?? "Upload progress"
state playground_value = Number(ctx.url.searchParams.get("pg_value") ?? "50")
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") ?? "brand-guidelines.pdf"
state playground_fileSize = ctx.url.searchParams.get("pg_fileSize") ?? "4.8 MB"
state playground_uploadedSize = ctx.url.searchParams.get("pg_uploadedSize") ?? "2.4 MB"
state playground_status = ctx.url.searchParams.get("pg_status") ?? "uploading"
state playground_cancelLabel = ctx.url.searchParams.get("pg_cancelLabel") ?? "Cancel upload"
state playground_retryLabel = ctx.url.searchParams.get("pg_retryLabel") ?? "Retry upload"
state playground_showCompleteAction = (ctx.url.searchParams.get("pg_showCompleteAction") ?? "false") === "true"
state playground_class = ctx.url.searchParams.get("pg_class") ?? ""
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="Upload progress"
fileName="brand-guidelines.pdf"
fileSize="4.8 MB"
uploadedSize="2.4 MB"
/>payload.
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
<FileUploadProgress
label="Upload progress"
fileName="brand-guidelines.pdf"
fileSize="4.8 MB"
uploadedSize="2.4 MB"
/>
A tighter variation for dashboards, side panels, tables, and operational interfaces.
<FileUploadProgress
label="Upload progress"
fileName="brand-guidelines.pdf"
fileSize="4.8 MB"
status="error"
/>
A more expressive variation using additional data, stronger emphasis, and optional states.
<FileUploadProgress
label="Upload progress"
value="100"
fileName="brand-guidelines.pdf"
fileSize="4.8 MB"
status="complete"
/>
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 |
showCompleteAction | boolean | false | No |
class | string | "" | No |