| button_Input | R Documentation |
This function create a gov style button
button_Input(inputId, label, type = "default")
inputId |
The input slot that will be used to access the value |
label |
Display label for the control, or |
type |
The type of button. Options are default, start, secondary and warning. Defaults to "default" |
a HTML button shiny tag object
Other Govstyle select inputs:
checkbox_Input(),
file_Input(),
radio_button_Input(),
select_Input()
ui <- shiny::fluidPage(
shinyGovstyle::header(
org_name = "Example",
service_name = "User Examples",
logo = "shinyGovstyle/images/moj_logo.png"
),
shinyGovstyle::gov_layout(
size = "two-thirds",
shinyGovstyle::button_Input(
inputId = "btn1",
label = "Continue",
type = "default"
)
),
shinyGovstyle::footer(full = TRUE)
)
server <- function(input, output, session) {}
if (interactive()) shinyApp(ui = ui, server = server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.