tabs: Add tabs

Description Usage Arguments Author(s) Examples

Description

Add tabs

Usage

1
2
3
bulmaTabs(..., center = FALSE)

bulmaTab(label, ...)

Arguments

...

any element.

center

set to center.

label

label of tab.

Author(s)

John Coene, jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
if(interactive()){
library(shiny)

shinyApp(
  ui = bulmaPage(
   bulmaTitle("Hello Bulma"),
   bulmaTabs(
     center = TRUE,
     bulmaTab(
       "Tab 1",
       "Content of the first Tab."
     ),
     bulmaTab(
       "Tab 2",
       plotOutput("hist")
     ),
     bulmaTab(
       "Tab 3",
       bulmaContainer(
         bulmaTitle("Plot"),
         plotOutput("plot")
       )
     )
   )
  ),
  server = function(input, output) {
    output$hist <- renderPlot({
      hist(rnorm(20, 10))
    })
    output$plot <- renderPlot({
      plot(1:20, rnorm(20, 20))
    })
  }
)
}

JohnCoene/shinybulma documentation built on Nov. 23, 2021, 6:20 p.m.