A tabbed panel set. input$<inputId> is the active tab value. Build tabs
with shad_tab(), which supplies both the trigger and its content panel.
Usage
shad_tabs(
inputId,
...,
selected = NULL,
orientation = c("horizontal", "vertical"),
class = NULL
)
shad_tab(value, title, ..., icon = NULL, disabled = FALSE)Arguments
- inputId
Input id.
- ...
One or more
shad_tab().- selected
Initially active tab value (defaults to the first tab).
- orientation
"horizontal"(default) or"vertical".- class
Extra CSS classes.
- value
Tab value.
- title
Tab trigger label.
- icon
Optional trigger icon.
- disabled
If
TRUE, the tab cannot be selected.
See also
Other shadshiny tier-3 components:
shad_accordion(),
shad_alert_dialog(),
shad_carousel(),
shad_collapsible(),
shad_command(),
shad_command_palette(),
shad_context_menu(),
shad_dialog(),
shad_drawer(),
shad_dropdown_menu(),
shad_hover_card(),
shad_menu_parts,
shad_menubar(),
shad_message_scroller(),
shad_navigation_menu(),
shad_pagination(),
shad_popover(),
shad_resizable(),
shad_scroll_area(),
shad_sheet(),
shad_sidebar_layout(),
shad_tooltip()
Examples
shad_tabs("t",
shad_tab("account", "Account", "Account panel"),
shad_tab("password", "Password", "Password panel"))
#> <div data-shad="tabs" id="t" data-value="account">
#> <div class="shad-tabs__list">
#> <div class="shad-tabs__indicator" aria-hidden="true"></div>
#> <button type="button" class="shad-tabs__trigger" data-value="account">Account</button>
#> <button type="button" class="shad-tabs__trigger" data-value="password">Password</button>
#> </div>
#> <div class="shad-tabs__content" data-value="account">Account panel</div>
#> <div class="shad-tabs__content" data-value="password">Password panel</div>
#> </div>