Ribbon
RibbonControlOrganize many commands into tabs and titled groups, Office style.
Overview
RibbonControl is a Blazor ribbon: an Office-style command bar with tabs across the top and titled groups of large and small buttons in each. Use it when a screen has more commands than a toolbar can hold, such as editing a booking; only the open tab's groups are shown, so the bar stays compact. The buttons hold no state, so your page decides what each does, when it is disabled and how it looks pressed.
Examples
#A booking desk ribbon
Build the booking from the ribbon: each Trip button adds its line once and then turns Disabled, and the total grows; Hold is a toggle, and Cancel disables what no longer applies. Email opens a DropDownContent menu, and one group holds check boxes instead of buttons, which show or hide the line prices and the total. Hide the ribbon with the arrow on the right or a double-click on a tab; Reports is a Disabled tab.
- No lines yet; add them on the Trip tab.
#Toggles, disabled groups and hidden tabs
Pick a traveler and a tab named after them joins the strip through Visible. Its buttons are toggles through Pressed, and the badges on the traveler's row follow; confirm the traveler and two groups turn Disabled.
- Window seatOpen
- Open
- VegetarianOpen
- Confirmed