// 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 {
Integrations component

Confetti

Theme-aware, responsive confetti component.

8 props1 slots2 outputsTheme readyResponsive
Interactive playground

Configure Confetti

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

Live preview
Component code
<Confetti
  label="Confetti"
  count="3"
/>
Event outputInteract with the preview to inspect the typed payload.
Component props8 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
<Confetti
  label="Confetti"
  count="3"
/>
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Component usage.wrn
<Confetti
  label="Compact example"
  count="7"
  size="sm"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Component usage.wrn
<Confetti
  label="Advanced example"
  count="11"
  size="lg"
/>
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.

@startFires when the component emits the start event.
@completeFires when the component emits the complete event.
Declarative handlers.wrn
<Confetti
  @start='console.log(payload)'
  @complete='console.log(payload)'
/>
Direct output handlers.js
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)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
labelstring"Celebrate"No
durationnumber1200No
countnumber24No
autoStartbooleanfalseNo
disabledbooleanfalseNo
sizestring"default"No
colorstring"primary"No
classstring""No
} }