← Back to Components

Tabs

Structured navigation tabs that keep horizontal labels reachable with contained scrolling on narrow layouts.

Interactive Playground

R Code

API Reference

block_tabs()

Sleek reactive card panels organizing dashboard tabs dynamically.

ArgumentTypeDefaultDescription
idcharacterNULLOptional Shiny input ID for the active tab value.
...shiny.tag | tagListrequiredTab layout child views created via block_tab().
selectedcharacterNULLName of initial selected active view.
variant'default' | 'line''default'Visual tab list style.
orientation'horizontal' | 'vertical''horizontal'Tab list direction; horizontal lists scroll within narrow containers when labels do not fit.
classcharacterNULLStyling classes applied on layouts wrapper.

update_block_tabs()

Selects an active tab from the Shiny server.

ArgumentTypeDefaultDescription
sessionShiny sessioncurrent domainSession used to send the update message.
input_idcharacterrequiredInput ID passed to block_tabs().
selectedcharacterrequiredTab value to activate.
notifylogicalTRUEWhether to notify Shiny after selecting the tab.

block_tab()

Wraps content sections placed inside tabs.

ArgumentTypeDefaultDescription
titlecharacterrequiredLabel string shown in tabs select row.
...shiny.tag | tagListrequiredUI elements to display inside the tab's pane.
valuecharacterNULLUnique value key representing tab.