Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
<Confetti
label="Confetti"
count="3"
/>
// Generated by scripts/generate-showcase.mjs. Do not edit directly.
page ConfettiDetail {
layout = "showcase"
state playground_label = ctx.url.searchParams.get("pg_label") ?? "Confetti"
state playground_duration = Number(ctx.url.searchParams.get("pg_duration") ?? "1200")
state playground_count = Number(ctx.url.searchParams.get("pg_count") ?? "3")
state playground_autoStart = (ctx.url.searchParams.get("pg_autoStart") ?? "false") === "true"
state playground_disabled = (ctx.url.searchParams.get("pg_disabled") ?? "false") === "true"
state playground_size = ctx.url.searchParams.get("pg_size") ?? "default"
state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary"
state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1"
seo {
title = "Confetti"
description = "Theme-aware, responsive confetti component."
}
view {
Theme-aware, responsive confetti component. Change any prop and inspect the server-rendered component immediately.Confetti
Configure Confetti
<Confetti
label="Confetti"
count="3"
/>payload.
Compare configurations and resize the browser to check responsive behavior.
Balanced spacing, hierarchy, and content for the most common product workflow.
<Confetti
label="Confetti"
count="3"
/>
A tighter variation for dashboards, side panels, tables, and operational interfaces.
<Confetti
label="Compact example"
count="7"
size="sm"
/>
A more expressive variation using additional data, stronger emphasis, and optional states.
<Confetti
label="Advanced example"
count="11"
size="lg"
/>
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.
@startFires when the component emits the start event.@completeFires when the component emits the complete event.<Confetti
@start='console.log(payload)'
@complete='console.log(payload)'
/>import { registerOutputHandler } from "@wrnexus/csr/outputs"
const component = document.querySelector("[data-ui-component=\"Confetti\"], [data-component=\"Confetti\"]")
if (component) registerOutputHandler(component, "start", (payload) => {
console.log("start", 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 |
|---|---|---|---|
label | string | "Celebrate" | No |
duration | number | 1200 | No |
count | number | 24 | No |
autoStart | boolean | false | No |
disabled | boolean | false | No |
size | string | "default" | No |
color | string | "primary" | No |
class | string | "" | No |