Confetti Showcase

confetti comes from here

Component Documentation

Component Name

Confetti

Builder Function Name

create_confetti_manager

Description

Creates a confetti animation with configurable item count, size, and random spread. There is a confetti component already in the Layout componet if full screen confetti is desired

Use like example

Config

PropertyTypeDefaultDescription
typestring

defines layout type (e.g. 'full' to fill screen) or null for local usage

amountnumber

50

how many confetti pieces to generate

sizenumber

1.2

base size multiplier for each confetti piece in rem

x_rangearray

-10,10

range for random x translation (in rem), e.g. [-10, 10]

x_spreadnumber

0.9

scales how far confetti travels horizontally during the fall

y_rangearray

-3,-10

range for random initial y position (in rem)

time_rangenumber

50

range (in ms) added to each piece's start delay

durationnumber

2000

animation duration for each piece, in milliseconds

item_bgany

background for confetti items, can be array of strings or 'rainbow'

fall_distancestring

10rem

vertical distance that confetti travels before disappearing

border_radiusnumber

0.1

border radius (rem) applied to each piece

Methods

MethodDescriptionParametersReturns
show_confetti

resets the confetti state, preps items, then triggers the confetti animation

No Params

void

Returned Properties

PropertyTypeDescription
typestring

layout type (e.g. 'full' for full-screen confetti) if set

confetti_preppedarray

array of pre-calculated confetti items with random transformations

is_showboolean

indicates if confetti is currently visible

border_radiusnumber

border radius in rem for each piece

fall_distancestring

vertical distance that confetti falls before disappearing

sizenumber

base size multiplier (rem) for each confetti piece

transition_durationnumber

duration (ms) for each confetti piece’s animation

x_spreadnumber

horizontal spread factor used in the confetti path animation

icon
Sponsored byContibase