Tab strip
- β / β
- Move focus to the previous / next tab
- Home / End
- Jump to the first / last tab
- Enter / Space
- Activate the focused tab
- Double-click
- Minimize / restore the ribbon
The ribbon follows the WAI-ARIA tab + toolbar pattern with Office-style shortcuts. Click anywhere in the ribbon first to put focus inside it.
data-key-tip="X" Screen-reader users also hear announcements (aria-live="polite") for ribbon minimize / restore, contextual-tab show / hide, and overflow-group collapse / expand transitions.
Copy-paste starting points for the most common ribbon shapes. Every element has an Angular wrapper (bs-*) over a Lit web component (mp-*); these snippets show the Angular form.
[(minimized)] two-way binds the minimize state β Ctrl+F1 and double-clicking a tab will update your signal.
The split-button never mutates its own label / icon. Implement the "last-used" pattern in your component by updating pasteMode inside onPasteModeSelect.
[(ngModel)]
Every value-bearing wrapper (toggle-button, check-box, combo-box, color-picker, group-button) implements ControlValueAccessor so it works with both template-driven (ngModel) and reactive forms (formControl).
Toggling [hidden] on the set fires contextual-visibility-change; the ribbon re-processes its slot and announces "Picture Tools, contextual, now available / hidden" via the live region.
The QAT is deliberately rendered as a sibling β two top-level role="toolbar" regions keep the a11y tree flat. Persistence of pinned commands is up to your app.
version picks one of office-2007 / 2010 / 2013 / 2016. appAccent drives the brand colour (Word #2B579A, Excel #217346, etc.). colorScheme="auto" follows prefers-color-scheme and ancestor data-bs-theme="dark".
Every item exposes a <slot name="icon"> alongside the existing icon string attribute. The host's size attribute auto-sizes slotted icons via ::slotted rules; consumers wanting an explicit override apply .ribbon-icon-large / -medium / -small directly on the projected element. The icon="" attribute remains supported as the fallback β consumers can mix-and-match.