Layout
The layout base class: the common root of the other layout components. Used alone it only provides the oo-ui-layout root class and the hidden three-state control.
The hidden three states
hidden has three states: true hides fully (hidden attribute + aria-hidden); 'until-found' hides visually but stays reachable by the browser's in-page search (Ctrl+F) — when matched, the browser reveals the element itself and fires the beforematch event, which you can listen for on the element for custom reactions (IndexLayout's openMatchedPanels is exactly this); omitting it leaves the element visible.
Currently visible
React 18 writes any truthy hidden as the boolean attribute, so the component rewrites the attribute after commit to make 'until-found' take effect; once React 19 types support it natively this workaround can go.
API
See also
- The form switches built on it: PanelLayout
- The full application of
until-found: IndexLayout'sopenMatchedPanels