% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shinyglass-package.R
\docType{package}
\name{shinyglass-package}
\alias{shinyglass}
\alias{shinyglass-package}
\title{Liquid Glass Design Themes for 'shiny' Applications}
\description{
Drop-in Liquid Glass themes for \href{https://shiny.posit.co/}{shiny}. Call
\code{\link[=glass_theme]{glass_theme()}} and pass the result to \verb{theme =} on \code{fluidPage()},
\code{navbarPage()}, or any \href{https://rstudio.github.io/bslib/}{bslib}-aware page
function to get translucent surfaces, backdrop blur, and system typography.
}
\section{Getting started}{


\if{html}{\out{<div class="sourceCode r">}}\preformatted{library(shiny)
library(shinyglass)

ui <- fluidPage(
  theme = glass_theme(preset = "auto", intensity = 0.45),
  titlePanel("Liquid Glass"),
  glass_intensity_slider("glass_intensity"),
  glass_theme_toggle(selected = "auto"),
  sliderInput("n", "Bars", 5, 30, 15),
  plotOutput("plot")
)

server <- function(input, output, session) \{
  observe_glass_theme_toggle(input, session)
  observe_glass_intensity(input, session, "glass_intensity")
  output$plot <- renderPlot(
    barplot(seq_len(input$n), col = "#007AFF", border = NA)
  )
\}
}\if{html}{\out{</div>}}

Light and dark presets are available via \code{glass_theme(preset = "dark")},
or \code{preset = "auto"} to follow the OS. Switch at runtime with
\code{\link[=update_glass_theme]{update_glass_theme()}} or \code{\link[=glass_theme_toggle]{glass_theme_toggle()}}. Material density is
controlled with \code{\link[=glass_intensity_slider]{glass_intensity_slider()}} (Ultra Clear to Tinted) or
\code{glass_theme(intensity = )}. Accent color, blur, saturation, corner radius,
and JS behaviors (\code{tint}, \code{specular}, \code{nav_morph}) are configurable.

For \href{https://insightsengineering.github.io/teal/}{teal} apps, set
\code{options(teal.bs_theme = glass_theme())} before calling \code{teal::init()}.
}

\seealso{
\code{\link[=glass_theme]{glass_theme()}}, \code{\link[=glass_intensity_slider]{glass_intensity_slider()}}, \code{\link[=update_glass_theme]{update_glass_theme()}},
\code{\link[=glass_theme_toggle]{glass_theme_toggle()}}
}
\author{
\strong{Maintainer}: Eric Anderson \email{eric.ray.anderson@gmail.com} [copyright holder]

Authors:
\itemize{
  \item Eric Anderson \email{eric.ray.anderson@gmail.com} [copyright holder]
}

}
\keyword{internal}
