Bar enums
Quickly manage the layout and behavior of the Bar component.
Use bar enums to choose between horizontal or vertical navigation, and to control how the bar collapses on smaller screens.
How it works
Set BarMode to choose the overall layout, then pair it with BarCollapseMode and BarTogglerMode to define collapse behavior and toggler styling.
Examples
BarMode.Horizontalfor a classic top navigation bar.BarCollapseMode.Smallto keep icons visible when collapsed.BarTogglerMode.Popoutfor vertical bars with a popout toggle.
Reference
BarCollapseMode
Defines how the bar will be collapsed.
BarCollapseMode.HideBar will be hidden completely when collapsed.BarCollapseMode.SmallBar will be collapsed into smaller version with icons.
BarMode
Bar orientation and menu display.
BarMode.HorizontalHorizontal navbar with dropdown menus.BarMode.VerticalPopoutVertical navbar with pop-out menus.BarMode.VerticalInlineVertical navbar with inline dropdown menus.BarMode.VerticalSmallSmall vertical navbar with pop-out menus.
BarTogglerMode
Defines the look and position of the bar toggler.
BarTogglerMode.NormalThe standard inline bar toggler. Supported by Horizontal and Vertical BarModes.BarTogglerMode.PopoutA popout style bar toggler. Supported only on Vertical BarModes.