sakuraPage: Create a page with Sakura

View source: R/sakura.R

sakuraPageR Documentation

Create a page with Sakura

Description

Create a Shiny UI page that loads the CSS for Sakura, and has no content in the page body (other than what you provide).

Usage

sakuraPage(..., title = NULL, theme = NULL, lang = NULL)

Arguments

...

The contents of the document body

title

The browser window title (defaults to the host URL of the page)

theme

One of the following:

  • NULL (the default), which implies a "stock" build of Sakura

  • One of the themes available in listSakuraThemes()

  • A character string pointing to an alternative Sakura stylesheet (normally a scss file within the www directory, e.g. www/sakura.scss)

lang

ISO 639-1 language code for the HTML page, such as "en" or "ko". This will be used as the lang in the <html> tag, as in <html lang="en">. The default (NULL) results in an empty string

Source

<https://github.com/oxalorg/sakura>

Examples


library(shiny)
library(classless)

ui <- sakuraPage(
  h1("Welcome to Sakura!"),
  p("A classless CSS framework")
)

server <- function(input, output) {}

shinyApp(ui, server)


ashbaldry/classless documentation built on June 2, 2022, 12:55 a.m.