classlessPage: Create a page with Classless.css

View source: R/classless.R

classlessPageR Documentation

Create a page with Classless.css

Description

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

Usage

classlessPage(..., 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 Classless.css

  • One of the themes available in listClasslessThemes()

  • A **named** character string pointing to an alternative Classless.css stylesheet (normally a css file within the www directory, e.g. c(theme = "www/classless-theme.css"))

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/emareg/classlesscss>

Examples


library(shiny)
library(classless)

ui <- classlessPage(
  h1("Welcome to Classless!"),
  p("An (almost) classless CSS framework")
)

server <- function(input, output) {}

shinyApp(ui, server)


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