Package 'fireworks'

Title: Fireworks for your 'Shiny' application
Description: 'fireworks' is a wrapper around the 'fireworks-js' library that contains ready to use fireworks components for web development frameworks like Vue3 and React.
Authors: Veerle van Leemput [aut, cre]
Maintainer: Veerle van Leemput <[email protected]>
License: MIT + file LICENSE
Version: 0.1.1
Built: 2026-11-24 15:25:29 UTC
Source: https://github.com/hypebright/fireworks

Help Index


fireworks dependencies utils

Description

This function attaches fireworks dependencies to the given tag

Usage

add_fireworks_deps(tag)

Arguments

tag

Element to attach the dependencies.


Add fireworks div

Description

Add fireworks div

Usage

fireworks(id, width = "100%", height = "400px", options = list())

Arguments

id

The id of the fireworks div

width, height

The width and height of the fireworks, either in pixels (e.g. '100px') or percent (e.g. '100%')

options

A list of options to pass to the fireworks


Fireworks R6 Class

Description

Create fireworks and start or stop the fireworks.

Details

Create an object to show fireworks as an overlay on the app or a specific HTML element specified by id. Then start, the fireworks show, and stop the fireworks show.

Methods

Public methods


Method new()

Usage
Fireworks$new(
  id = NULL,
  session = shiny::getDefaultReactiveDomain(),
  options = list()
)
Arguments
id

Id, or vector of ids, of element on which to display the fireworks, if NULL the fireworks show will be an overlay on the full HTML document.

session

The Shiny session

options

A list of options to pass to the fireworks

Details

Create fireworks.

Examples
\dontrun{Fireworks$new()}

Method start()

Usage
Fireworks$start()
Details

Start fireworks.


Method stop()

Usage
Fireworks$stop(fadeOut = FALSE)
Arguments
fadeOut

Whether to fade out the fireworks before stopping. Note that this will take 2000ms to complete.

Details

Stop the fireworks


Method clone()

The objects of this class are cloneable with this method.

Usage
Fireworks$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## ------------------------------------------------
## Method `Fireworks$new`
## ------------------------------------------------

## Not run: Fireworks$new()

Add fireworks dependencies

Description

Add fireworks dependencies

Usage

useFireworks()

Value

A tagList with the fireworks dependencies