NoRedInk/noredink-ui/13.1.0

NOTE: the latest version is 35.9.3

Nri.Ui.Confetti.V2

type Model
init : Float -> Model
view : Model -> Html msg
type alias Msg =
Msg Confetti

burst BURSTS CONFETTI!!!

update : Msg Confetti -> Model -> Model

You will need to watch for page resize events and update the confetti model with the new width. If you don't, your confetti will be off-center.

Why is this not part of subscriptions? Your application may already be listening for browser resize events -- we don't want to double-up listeners unnecessarily.

subscriptions : (Msg -> msg) -> Model -> Sub msg

Changes from V1:

  • removes custom words from confetti