Skip to contents

Add this anywhere in your UI. Shiny will take care of hoisting it into your HTML page's <head>.

Usage

use_alpine(plugins = NULL, stores = NULL)

Arguments

plugins

Character vector with Alpine plugin names (e.g. c("persist", "mask", "intersect")).

Value

A htmltools::tagList with the dependencies as htmltools::htmlDependency.

Examples

if (FALSE) { # \dontrun{
ui <- fluidPage(
  use_alpine(plugins = c("mask", "persist")),
  div(x_data("{ open: false }"), ...)
)
} # }