Skip to content

JacquesBisschoff/shinybulma

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 81.1%
  • JavaScript 18.9%