Class TwSidebarTheme
- Namespace
- TwBlazor.Configuration.Components
- Assembly
- TwBlazor.dll
Theme configuration for the sidebar component (TwSidebar). Override any property to customize sidebar styles globally.
[ExcludeFromCodeCoverage]
public class TwSidebarTheme
- Inheritance
-
TwSidebarTheme
- Inherited Members
Constructors
TwSidebarTheme()
public TwSidebarTheme()
Properties
DrawerCloseButton
Gets or sets the classes for the close button inside the sidebar. It is shown only while the sidebar is a drawer over the page (below the "lg" breakpoint), where the toggle in the top bar is covered.
public string DrawerCloseButton { get; set; }
Property Value
Header
Gets or sets the classes for the row that wraps HeaderContent, such as a logo.
public string Header { get; set; }
Property Value
Remarks
Give it the same height as Navbar so the header lines up with the top bar beside it.
MainContent
Gets or sets the classes for the main content area beside the sidebar.
public required string MainContent { get; set; }
Property Value
MainContentRoot
Gets or sets the classes for the root element wrapping the main content area.
public required string MainContentRoot { get; set; }
Property Value
MobileClosed
Gets or sets the classes applied to the sidebar drawer when closed on a mobile viewport.
public required string MobileClosed { get; set; }
Property Value
MobileOpen
Gets or sets the classes applied to the sidebar drawer when open (mobile) or always (desktop).
public required string MobileOpen { get; set; }
Property Value
MobileOverlay
Gets or sets the classes for the mobile backdrop overlay shown behind an open sidebar drawer.
public required string MobileOverlay { get; set; }
Property Value
Navbar
Gets or sets the classes for the top navbar.
public required string Navbar { get; set; }
Property Value
NavbarActions
Gets or sets the classes for the navbar actions slot.
public required string NavbarActions { get; set; }
Property Value
NavbarActionsCollapsible
Gets or sets the extra classes for the navbar actions slot while the navbar can collapse. Below the breakpoint they set the actions apart under the links, centered in a row at their own size.
public string NavbarActionsCollapsible { get; set; }
Property Value
NavbarBrand
Gets or sets the classes for the navbar brand slot.
public required string NavbarBrand { get; set; }
Property Value
NavbarContent
Gets or sets the classes for the navbar's inner layout container.
public required string NavbarContent { get; set; }
Property Value
NavbarFixedInset
Gets or sets the extra inset classes for a Fixed navbar, layered on top of the shared
"fixed" position and "top-0" inset.
public required string NavbarFixedInset { get; set; }
Property Value
NavbarLink
Gets or sets the classes for navbar navigation links.
public required string NavbarLink { get; set; }
Property Value
NavbarLinkActive
Gets or sets the classes for the active navbar navigation link.
public required string NavbarLinkActive { get; set; }
Property Value
NavbarLinkCollapsible
Gets or sets the extra classes for navbar navigation links while the navbar can collapse. Below the breakpoint they turn each link into a full-width row tall enough to tap.
public string NavbarLinkCollapsible { get; set; }
Property Value
NavbarMobileMenu
Gets or sets the classes for the mobile dropdown panel shown when the responsive menu is open.
public required string NavbarMobileMenu { get; set; }
Property Value
Remarks
The panel sits inside the bar and shares its surface, so NavbarLink's text color stays legible whatever color Navbar is. Give it a background of its own only if it should differ.
NavbarNavigation
Gets or sets the classes for the navbar navigation slot.
public required string NavbarNavigation { get; set; }
Property Value
NavbarNavigationExpanded
Gets or sets the classes for the navigation slot when DisableResponsiveCollapse is set,
so it always fills the available width instead of collapsing into the mobile menu.
public required string NavbarNavigationExpanded { get; set; }
Property Value
NavbarNavigationResponsive
Gets or sets the responsive (desktop, "lg:") layout classes for the navbar's navigation slot,
used unless DisableResponsiveCollapse is set.
public required string NavbarNavigationResponsive { get; set; }
Property Value
NavbarToggle
Gets or sets the classes for the navbar menu toggle.
public required string NavbarToggle { get; set; }
Property Value
NavbarToggleIcon
Gets or sets the classes for the drawer-toggle icon itself, inside NavbarToggle.
public required string NavbarToggleIcon { get; set; }
Property Value
NavigationDropdownContainer
Gets or sets the classes for the dropdown container that holds a navigation item's nested items.
public required string NavigationDropdownContainer { get; set; }
Property Value
NavigationDropdownContainerDeep
Gets or sets the classes layered on top of NavigationDropdownContainer for the collapsible child container of a group nested three levels deep.
public required string NavigationDropdownContainerDeep { get; set; }
Property Value
Remarks
Adds a guide rail and extra indentation connecting the open group visually to its own children, in the same accent used by NavigationItemActiveLevelDeep.
NavigationGroupRailDeep
Gets or sets the classes applied to the wrapper spanning a parent item's own toggle button and its collapsible child container, when that parent's children are nested three levels deep.
public required string NavigationGroupRailDeep { get; set; }
Property Value
Remarks
Extends the guide rail from NavigationDropdownContainerDeep upward so it runs the full height of the group, including the parent's own row, rather than starting only where the children begin.
NavigationItemActive
Gets or sets the classes applied to the currently active navigation item.
public required string NavigationItemActive { get; set; }
Property Value
NavigationItemActiveLevelDeep
Gets or sets the classes layered on top of NavigationItemActive for an open parent item nested three levels deep (e.g. a group nested inside another nested group under a top-level category).
public required string NavigationItemActiveLevelDeep { get; set; }
Property Value
NavigationItemBase
Gets or sets the base classes applied to every navigation item.
public required string NavigationItemBase { get; set; }
Property Value
NavigationItemContent
Gets or sets the classes for the wrapper around the content rendered after a navigation item's label (see NavigationItemContent), pushing it to the end of the row.
public string NavigationItemContent { get; set; }
Property Value
NavigationItemCurrent
Gets or sets the classes layered on top of NavigationItemActive for the link to the current page only (not for an open parent item): the full-height brand gradient marker on its start edge, clipped to the item's rounded corners.
public required string NavigationItemCurrent { get; set; }
Property Value
NavigationItemIcon
Gets or sets the classes for the icon rendered before a navigation item's label (see Icon).
public string NavigationItemIcon { get; set; }
Property Value
NavigationItemParent
Gets or sets the classes for a parent item's label: always applied to a top-level parent, and to a nested parent only while it is expanded. Leaf links never receive it, so only the items that open sections stand out from the page links beneath them.
public string NavigationItemParent { get; set; }
Property Value
NavigationItemToggleIcon
Gets or sets the transition classes for a parent navigation item's chevron icon, which rotates between the collapsed/expanded states.
public required string NavigationItemToggleIcon { get; set; }
Property Value
NavigationItemToggleLabel
Gets or sets the classes for a parent navigation item's own label span, pushing its trailing chevron icon to the end of the row.
public required string NavigationItemToggleLabel { get; set; }
Property Value
NavigationList
Gets or sets the classes for the scrollable list of navigation items beneath the sidebar's optional header/search.
public required string NavigationList { get; set; }
Property Value
Search
Gets or sets the classes for the row that wraps the search field when IsSearchable is set. It positions SearchIcon.
public string Search { get; set; }
Property Value
SearchIcon
Gets or sets the classes for the decorative search icon drawn over the start of the search field.
public string SearchIcon { get; set; }
Property Value
SearchInput
Gets or sets the classes added to the search field's input, merged over the input theme. Include start padding so the text does not run under SearchIcon.
public string SearchInput { get; set; }
Property Value
SearchInputVariant
Gets or sets the variant of the search field. When null, the input theme's default variant is used.
public InputVariant? SearchInputVariant { get; set; }
Property Value
Sidebar
Gets or sets the classes for the sidebar panel itself.
public required string Sidebar { get; set; }
Property Value
SkipLink
Gets or sets the classes for the "skip to main content" link, visible only while focused.
public required string SkipLink { get; set; }