Skip to main content
Version: v6.0.0-alpha.10

ontario-header-menu-tabs

Overview

Ontario Header Menu Tabs Component

Provides a tabbed navigation interface for mobile/tablet views. Displays two tabs (Topics and Sign In) with overflow menu content. Manages keyboard navigation, focus trapping, and accessibility.

Properties

PropertyAttributeDescriptionTypeDefault
autoDetectModeauto-detect-modeEnable auto-detect handoff mode.boolean | undefinedfalse
languagelanguageThe language of the component. This is used for translations, and is by default set through event listeners checking for a language property from the header. If none is passed, it will default to English."en" | "fr" | undefined'en'
signInMenuItemssign-in-menu-itemsMenu items for the "Sign In" tab. Can be passed as a MenuItem array or JSON string.MenuItem[] | stringundefined
topicsMenuItemstopics-menu-itemsMenu items for the "Topics" tab. Can be passed as a MenuItem array or JSON string.MenuItem[] | stringundefined

Events

EventDescriptionType
focusFirstItemEvent emitted to request overflow menu to focus its first item.CustomEvent<void>
focusMenuButtonEvent emitted to request header to focus the menu button. Triggered when Shift+Tab is pressed on the first tab.CustomEvent<void>
takeOwnershipEvent emitted when ownership handoff is triggered in auto-detect mode.CustomEvent<{ panelId: string | null; }>

Dependencies

Used by

Depends on

Graph


Built with StencilJS