Dynamically transition through different content panes
UIkitSwitcher(..., animation = NULL, mode = "tabs")
... | Slot for UIkitSwitcherItem. |
---|---|
animation | Apply animation to the switcher content. See https://getuikit.com/docs/animation. |
mode | Switcher mode: "switcher" or "tabs". "tabs" by default. |
if(interactive()){ library(shiny) shiny::shinyApp( ui = UIkitPage( title = "My UIkit application", UIkitSwitcher( animation = "fade", mode = "switcher", UIkitSwitcherItem( tabName = "tab1", "Tab content 1" ), UIkitSwitcherItem( tabName = "tab2", "Tab content 2" ) ) ), server = function(input, output) {} ) }