happyshows / shinybulma

Bulma.io for Shiny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shinybulma

Travis-CI Build Status AppVeyor Build Status

bulma.io for Shiny. Contains extensions: bulma-extensions as well as themes.

Installation

# install.packages("devtools")
devtools::install_github("JohnCoene/shinybulma")

Example

library(shiny)

shinyApp(
  ui = bulmaPage(
  bulmaHero(
    fullheight = TRUE,
	  color = "primary",
	  bulmaHeroBody(
	    bulmaContainer(
		    bulmaTitle("Shiny meets Bulma!"),
			  bulmaSubtitle("A neat framework for your Shiny apps.")
		  )
	  )
  ),
  bulmaSection(
  	  bulmaContainer(
	  	  bulmaTileAncestor(
		  	  bulmaTileParent(
			  	  vertical = TRUE,
				    bulmaTileChild(
				  	  bulmaTitle("Tile 1"),
					    p("Put some data here"),
					    color = "link"
				    ),
				    bulmaTileChild(
				  	  bulmaTitle("Tile 2"),
					    plotOutput("chart"),
					    color = "danger"
				    )
			    ),
		  	  bulmaTileParent(
			  	  vertical = TRUE,
				    bulmaTileChild(
				  	  bulmaTitle("Tile 3"),
					    p("Put some data here"),
					    color = "warning"
				    ),
				    bulmaTileChild(
				  	  bulmaTitle("Tile 3"),
					    ("Put some data here"),
					    color = "info"
				    )
			    )
		  )
	  )
  )
  ),
  server = function(input, output) {
    output$chart <- renderPlot({
      plot(x = runif(20, 5, 10), y = runif(20, 10, 12))
    })
  }
)

# Server logic
server <- function(input, output) {}

# Complete app with UI and server components
shinyApp(ui, server)

Extensions demo

https://dgranjon.shinyapps.io/bulmaExtension/

About

Bulma.io for Shiny

License:Other


Languages

Language:R 90.5%Language:JavaScript 9.5%