Animated glass-style tab navigation UI
Arguments
- id
Module namespace id.
- ...
One or more
glassTabPanel()objects.- selected
Value of the initially selected tab.
- wrap
Logical. When
TRUEwraps everything in adiv.gt-container.- compact
Logical. When
TRUEapplies reduced padding and spacing via the.gt-compactCSS modifier - useful inside dashboard cards or tight layouts (e.g. bs4Dash).- shape
Corner style for the tab bar and content. One of
"rounded"(default) for the signature glass look, or"square"for crisp, selectize-style corners that matchglassSelect()andglassMultiSelect()whenshape = "square".- indicator
Style of the sliding active-tab indicator. One of:
"glass"(default) - the signature frosted-glass halo with backdrop blur, shimmer, and transfer particle."solid"- a flat, opaque sliding pill. Nobackdrop-filteror shimmer; lighter on the GPU and better suited to plain or enterprise-style dashboards. Colors still follow the theme'shalo_bg/halo_border."underline"- a slim sliding bar under the active tab; tab buttons lose their pill background for a classic tabbed look. The bar color follows the theme'shalo_border.
- orientation
One of
"horizontal"(default) or"vertical". In vertical mode the tab buttons stack in a left-hand rail and the content pane sits beside them. The sliding halo follows automatically, arrow-key navigation switches to Up/Down, andindicator = "underline"renders as a slim bar on the edge of the active tab adjacent to the content.- tab_align
Alignment for text and icons inside each tab button. One of
"center"(default),"left", or"right".- extra_ui
Optional additional UI placed to the right of the tab bar (below the tab rail when
orientation = "vertical").- theme
One of
"dark","light","auto", or aglass_tab_theme()object."auto"bridges to Bootstrap 5 / bslib color modes: light-theme variables apply by default and dark-theme variables apply whenever an ancestor carriesdata-bs-theme="dark"(e.g.bslib::toggle_dark_mode()orinput_dark_mode()), with the switch handled live in the browser - no server round-trip.- dark_selector
Optional CSS selector for a parent element that signals dark mode (e.g.
"body.dark-mode"for bs4Dash,"[data-bs-theme=dark]"for Bootstrap 5). When provided andtheme = "light", a second scoped<style>block overrides the CSS variables back to the dark-mode defaults whenever that selector is active - so the tabs stay readable after a dark-mode toggle without any server-side intervention.
Value
An htmltools::tagList ready to use in a Shiny UI.