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 a React wrapper (Bs*) over a Lit web component (mp-*); these snippets show the React form.
The minimized prop + onMinimizeToggle handler mirror Angular's two-way [(minimized)] β Ctrl+F1 and double-clicking a tab will fire the event and update your state.
The split-button never mutates its own label / icon. Implement the "last-used" pattern in your component by updatingpasteMode inside onPasteModeSelect.
Every value-bearing wrapper (toggle-button, check-box, combo-box, color-picker, group-button) exposes a value prop + a matchingon*Change event β the standard React controlled-component pattern.
Toggling hidden on the set firescontextual-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-levelrole="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" followsprefers-color-scheme and ancestordata-bs-theme="dark".
Every item exposes a <slot name="icon"> alongside the existing icon string attribute. The host'ssize attribute auto-sizes slotted icons via::slotted rules; consumers wanting an explicit override apply .ribbon-icon-large / -medium /-small directly on the projected element. Theicon="" attribute remains supported as the fallback β consumers can mix-and-match.