mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-21 04:31:30 +03:00
Adds documentation for burst
This commit is contained in:
parent
b3a02654bc
commit
f27cfbde87
@ -139,7 +139,17 @@ viewConfetti particle =
|
||||
-- UPDATE
|
||||
|
||||
|
||||
{-| -}
|
||||
{-| `burst` BURSTS CONFETTI!!! Pass in a list of words that you'd like to have
|
||||
in the confetti:
|
||||
|
||||
Confetti.burst
|
||||
[ { color = Colors.highlightMagenta, text = "tree" }
|
||||
, { color = Colors.highlightGreen, text = "bush" }
|
||||
, { color = Colors.highlightCyan, text = "succulent" }
|
||||
]
|
||||
state.confetti
|
||||
|
||||
-}
|
||||
burst : List { color : Color, text : String } -> Model -> Model
|
||||
burst highlightedWords (System system center) =
|
||||
System
|
||||
|
Loading…
Reference in New Issue
Block a user