inst/examples/CheckboxGroup/ui.R

library(shiny)
library(shinyChakraUI)

shinyUI(
  chakraPage(

    br(),

    fluidRow(

      column(
        width = 6,
        chakraComponent(
          "mycomponent",
          Tag$CheckboxGroup(
            id = "checkboxgroup",
            defaultValue = c("naruto", "sasuke"),
            colorScheme = "yellow",
            size = "lg",
            Tag$Heading(
              fontFamily = "cursive",
              "Checkbox group"
            ),
            Tag$Box(
              bg = "orange.50",
              p = 5,
              shadow = "md",
              Tag$HStack(
                spacing = 8,
                Tag$Checkbox(
                  icon = Tag$CheckCircleIcon(),
                  value = "naruto",
                  "Naruto"
                ),
                Tag$Checkbox(
                  icon = Tag$CheckCircleIcon(),
                  value = "sasuke",
                  "Sasuke"
                )
              )
            )
          )
        )
      ),

      column(
        width = 6,
        tags$span(
          style = "color: red; font-size: 28px;", "CheckboxGroup value:"
        ),
        verbatimTextOutput("checkboxgroupValue")
      )

    )

  )
)

Try the shinyChakraUI package in your browser

Any scripts or data that you put into this service are public.

shinyChakraUI documentation built on Jan. 5, 2022, 5:08 p.m.