Recommended
01
Production default
Balanced spacing, hierarchy, and content for the most common product workflow.
Live preview
<Confetti
label="Confetti"
count="3"
/>
Theme-aware, responsive confetti component.
Change any prop and inspect the server-rendered component immediately.
<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 |