Overlays and navigation
Overlays and navigation components give an application a consistent way to focus attention, expose actions, switch views, and move through its page structure. They share portal-based floating surfaces and input rules where useful, while dialogs and sheets provide modal focus and navigation shells provide the stable frame around page content. See the component library for the wider component model.
Component roles
Each component serves a distinct interaction need. Choose by the user task rather than by visual similarity.
| Need | Component | Role |
|---|---|---|
| Focused task or confirmation | Dialog | Blocks the page with a titled surface for content, forms, or actions. |
| Mobile focused task | BottomSheet | Presents modal content from the bottom edge with touch-friendly dismissal. |
| Triggered supporting content | Popover | Anchors a panel to a trigger without changing page layout. |
| Short help text | Tooltip | Shows a brief hint on hover or focus. |
| Hover-based preview | HoverCard | Shows non-essential preview content while a trigger is hovered or focused. |
| Trigger-based actions | Dropdown | Shows grouped actions, switches, and nested menus. |
| Pointer-based actions | ContextMenu | Shows actions at the point where a user right-clicks. |
| Content or route switch | Tabs | Selects visible panels or navigates between related routes. |
| Value choice | TabButtons | Selects one value with radio-group semantics. |
| Desktop navigation frame | DesktopShell | Holds the rail, sidebar, page header, and main scroll area. |
| Mobile navigation frame | MobileShell | Holds the page header, native-scrolling content, and bottom navigation. |
Use input-controls for controls that edit or select data. Use layout-and-feedback for non-navigation layout and status surfaces. The editor and list molecules, rich-text editor molecule, and code editor molecule pages show larger features that use these navigation patterns.
Floating surfaces
Floating surfaces leave the document flow and render through a portal. This keeps menus, hints, previews, and anchored panels above clipped or scrolling content while their trigger remains in the page layout. Popover, HoverCard, and Tooltip use an anchor relationship; Dropdown and ContextMenu add a shared menu model for actions.
The shared floating-panel surface gives popover-style content one visual rhythm. Popover can use that surface or render bare content when the content supplies its own surface. It can also show an arrow that points to the trigger. Its open state uses instant opacity-only motion instead of scale motion. HoverCard uses the same panel surface and adds delayed hover behavior, while Tooltip can use either its bubble surface or caller-owned content. The component that owns the interaction still controls focus, dismissal, and accessibility.
Anchoring and placement
Anchored panels select a preferred side and alignment, then adjust their position when the viewport does not have enough room. Popover exposes collision padding, can match the trigger width, and can position against a separate reference element. Dropdown exposes side, alignment, offset, and optional trigger-width matching. Tooltip and HoverCard use a simpler side-and-offset model. A context menu uses the pointer location, or the trigger bounds when its open state is set through the trigger slot. Long menus remain within the viewport and scroll internally so the last action stays reachable.
The following relationship shows how an in-flow trigger leads to portaled content without disturbing the page layout.
flowchart LR
T[Trigger or pointer region] --> I[Interaction state]
I --> P[Position relative to trigger, reference, or cursor]
P --> O[Portaled floating surface]
O --> A[Action, hint, preview, or selection]
References: src/…/Popover.vue• L1-49 src/…/Popover.api.md• L7-95 src/…/types.ts• L5-62 src/…/HoverCard.vue• L104-137 src/…/HoverCard.api.md• L7-69 src/…/ContextMenu.vue• L1-23 src/…/ContextMenu.api.md• L7-27 src/…/ContextMenu.cy.ts• L191-226 src/…/Tooltip.vue• L57-79 src/…/TooltipBubble.vue• L20-65 src/…/Menu.vue• L45-107
Dismissal and keyboard input
The overlay family treats keyboard input as a first-class path. Trigger-based overlays support keyboard activation through their accessible primitive. Popovers close on outside interaction or Escape by default, and dismissible: false suppresses both paths when the panel has its own action. A popover trigger also exposes its open state for visual updates, while its content can close the popover directly. Manual popovers do not toggle from the trigger, which keeps typing in an input from changing panel state; autoFocus: false keeps the caret in that input. The update:open event reports an open or close request, while open and close report the state the popover actually reaches. Menus keep their own item and submenu behavior, while a context menu also prevents background scrolling during the open interaction.
Hover cards open from pointer hover or keyboard focus after a delay and remain open while the pointer moves from the trigger into the card. A tooltip can be disabled without removing its trigger. A Tooltip now mounts only its trigger until the first hover or focus, then creates its accessible tooltip surface. The first focus keeps focus on the trigger and does not interrupt typing in a focused descendant. A shared provider lets neighboring tooltips skip the full delay, including tooltips inside buttons and other provider-aware controls.
Do not use hover-only content for required information or actions. Tooltip is for a short hint, and HoverCard is for an optional preview.
References: src/…/Popover.md• L8-39 src/…/Popover.vue• L71-193 src/…/Popover.cy.ts• L16-79 src/…/HoverCard.md• L7-21 src/…/HoverCard.md• L45-50 src/…/HoverCard.vue• L23-82 src/…/Tooltip.vue• L18-79 src/…/TooltipProvider.vue• L5-53 src/…/Tooltip.cy.ts• L82-211 src/…/Tooltip.playground.vue• L5-47 src/…/ContextMenu.vue• L78-181 src/…/ContextMenu.cy.ts• L228-359
Menus and actions
Dropdown and ContextMenu present the same broad action language in different ways. A dropdown starts from a known trigger. A context menu starts from a right-clickable surface and places the menu at the cursor. Both use the shared menu model for grouped options, disabled actions, nested submenus, custom rows, and switch rows. A group keeps its items under options; an action can navigate to a route or run a callback; and a condition can omit an item before display. ContextMenu also exposes a controlled open state and an open value to its trigger slot, so a host can coordinate the menu with the active right-click target.
The owning overlay closes a menu when an action completes, while switch rows stay open so users can change several settings in one visit. Row actions can supply options for the specific item that owns the menu, while selection-style rows can expose the current value and disabled reason without changing the menu surface. A dropdown opens on mouse press for responsive feedback, but leaves touch activation to the normal click path so a touch press does not interfere with scrolling. Its trailing click is handled as part of the same gesture, so one mouse press does not open and close the menu again. Disabled triggers and items remain inactive across pointer and keyboard paths. Both menu variants support an empty state, item-level content slots, and menus that scroll when their contents exceed the viewport without changing the shared action model.
References: src/…/ContextMenu.md• L1-28 src/…/types.ts• L25-66 src/…/ContextMenu.cy.ts• L17-128 src/…/ContextMenu.cy.ts• L130-210 src/…/Menu.api.md• L7-38 src/…/types.ts• L24-124 src/…/Menu.vue• L30-185 src/…/MenuItemContent.vue• L121-201 src/…/Dropdown.cy.ts• L67-224 src/…/Dropdown.cy.ts• L271-454 src/…/KebabMenu.vue• L12-76 src/…/StatusMenu.vue• L22-58
Modal surfaces
Modal surfaces temporarily place the user inside one task. They portal an overlay and content above the page, manage focus within the content, and support a controlled open state. A dismissible surface closes from its supported escape paths; a non-dismissible surface requires an action inside the surface.
The modal flow moves from an activation source to a focused task surface, then closes only after the user action or async work settles.
sequenceDiagram
participant U as User
participant T as Trigger
participant S as Modal surface
participant C as Task content
U->>T: Activate
T->>S: Open and move focus inside
U->>C: Complete, cancel, or dismiss
C-->>S: Update state
S-->>U: Close after the task settles
Dialogs
Dialog is the general modal surface for messages, forms, confirmations, and multi-step tasks. Its normal shape supplies a title area, content area, close affordance, and action area. Its bare shape removes that chrome so a command palette or custom surface can own the full layout. The dialog can honor an explicitly marked initial focus target while retaining its normal focus behavior when no target is marked.
The backdrop and dialog content use separate layers so clicks on fields keep normal browser focus behavior. Editor suggestion surfaces that render outside the dialog are treated as part of the dialog interaction, so choosing a suggestion does not dismiss the task.
The dialog supports either an open binding or a model-value binding, with the open binding taking precedence when both are present. Its action state stays loading while an async action runs, which keeps the task surface present until the work settles. The imperative dialog.confirm, dialog.danger, and dialog.prompt helpers cover common flows without requiring the caller to mount a dialog. Confirm actions wait for async work before closing and show failures inside the dialog. Prompt fields collect values and run required checks plus field validation before the submit handler receives a value snapshot. Prompt combobox fields can also offer a create-new choice when the typed value is not already present.
References: src/…/Dialog.vue• L1-45 src/…/Dialog.vue• L47-155 src/…/Dialog.vue• L235-405 src/…/Dialog.vue• L384-405 src/…/Dialog.api.md• L7-131 src/…/types.ts• L31-117 src/…/index.ts• L1-29 src/…/Dialog.playground.vue• L6-84 src/…/dialog.ts• L21-179 src/…/dialog.ts• L247-445 src/…/dialog.ts• L504-733
Bottom sheets
BottomSheet is the mobile modal counterpart to Dialog. It grows from the bottom edge up to a viewport limit and keeps its title and grab handle visible while its body scrolls when the content is long. The sheet itself can be dragged down from the body or handle when dismissal is enabled. The gesture is claimed only for a downward vertical drag that starts at the top of the nearest scrollable content, so a scrolled list continues to scroll and text fields or explicitly protected regions keep their own touch behavior.
The sheet takes focus as a modal container when it opens instead of opening the mobile keyboard on the first field. Outside interaction, Escape, and a completed downward drag dismiss it when it is dismissible. A short or canceled drag returns the sheet to place. With dismissal disabled, those paths leave the sheet open. Use Dialog for desktop tasks and BottomSheet for mobile tasks rather than treating them as one responsive surface.
References: src/…/BottomSheet.vue• L1-60 src/…/BottomSheet.vue• L78-140 src/…/BottomSheet.test.ts• L217-529 src/…/BottomSheet.test.ts• L562-719
Tabs and value switching
Tabs keep related views in one navigation group. Their semantics depend on whether the user is switching content or choosing a value, even when both controls can look the same. Tabs and TabButtons share visual variants and an active indicator, but they expose different meanings to assistive technology and to the rest of the application.
Content and route tabs
Tabs uses a root with TabList, TabTrigger, and TabPanel parts. A selected trigger controls the visible panel in content mode. In route mode, a trigger follows a route and the route supplies the selected state; page content belongs outside the tab set in a router view. The root can also combine route triggers with local triggers. In that case a local click can remain active until the route changes or the matched route tab changes again.
The root supports horizontal and vertical orientation, with underline, subtle, ghost, and browser-tab presentation variants. Orientation changes keyboard and accessibility behavior, but composed mode does not impose the surrounding layout, so the application decides how the list and panel sit together. Disabled triggers cannot be selected and are skipped by keyboard navigation. Route tabs use manual activation so arrow-key movement does not navigate before the user activates a tab. Exact route matches take priority over parent matches. If no route matches, a local trigger can provide a selection; an all-route list remains unselected until its route matches. Shorthand and composed forms share these selection rules, including fallback to the first selectable trigger when a bound value is stale. A bound model takes precedence over route-derived selection while route links still navigate.
TabTrigger renders a route trigger as a link when it is enabled and as a button otherwise. Its selected state drives the shared tab visual and its slot content, so custom labels and badges remain part of the same navigation contract.
TabButtons looks like a tab set but represents a value choice. Use it for filters, settings, and form fields because it exposes radio-group semantics rather than tablist semantics. Each option has a stable value. Local options can also render as internal route links or external links, while disabled options render as inactive buttons. Icon-only options keep their label as accessible text. Its fluid option can make the choices fill their container, and its public focus() method moves focus to the selected option or the first enabled option. A stale model remains unselected rather than selecting an unrelated value.
References: src/…/Tabs.md• L1-10 src/…/Tabs.md• L34-44 src/…/Tabs.md• L52-79 src/…/Tabs.vue• L65-124 src/…/Tabs.vue• L167-287 src/…/Tabs.vue• L301-359 src/…/Tabs.playground.vue• L5-105 src/…/Tabs.cy.ts• L188-238 src/…/Tabs.cy.ts• L316-418 src/…/Tabs.cy.ts• L716-970 src/…/Tabs.cy.ts• L1105-1295 src/…/Tabs.test.ts• L34-87 src/…/TabTrigger.vue• L46-109 src/…/TabTrigger.vue• L113-146 src/…/TabButtons.md• L1-8 src/…/TabButtons.md• L67-103 src/…/TabButtons.vue• L78-101 src/…/TabButtons.vue• L291-329 src/…/TabButtons.vue• L334-426 src/…/types.ts• L13-59 src/…/TabButtons.cy.ts• L49-108 src/…/TabButtons.cy.ts• L159-245 src/…/TabButtons.cy.ts• L342-503
Navigation shells
Navigation shells provide the stable frame around routed content. They keep page headers and navigation controls in fixed regions while exposing one active content scroll area to the rest of the application.
Desktop shell
DesktopShell places an optional SidebarRail and Sidebar beside the main content. The main area receives a pinned PageHeaderTarget and either one shared scroll region or a fixed-height region whose inner panes own their scroll. A page can declare its PageHeader near its own content; the shell receives it in the pinned target.
SidebarRail is the narrow icon navigation column. Its items can link to routes or external URLs, act as buttons, show active state, and expose unread counts through badges and tooltips. A dot badge hides its number visually but keeps the unread count in the accessible name or tooltip. Sidebar is the wide navigation column and a composition frame rather than a complete layout. It emits one named navigation landmark and provides collapse state to its children, while the app places the header, scroll region, sections, and footer in its slot. It can collapse below the small-screen breakpoint or follow a bound state.
SidebarItem represents a route link, an external link, or an action. It infers active state from a route unless the caller sets it, and its trailing area stays separate from the link or button so an options control can work without invalid nesting. Row attributes and events can apply to the full row while link attributes reach the actual control. When the sidebar is collapsed, item labels and trailing content hide while the item name remains available through a tooltip. The tooltip opens toward the page rather than into the navigation column. Slot-only labels also provide the fallback name for this collapsed state.
SidebarSection groups rows under an optional named heading and can own or expose its collapsed state. Its local state is separate from the whole-sidebar collapse state, and its body remains a named group for assistive technology while it is open or closed. SidebarLabel provides a non-interactive group label and can replace that label with a divider when the sidebar has no room for text.
SidebarHeader gives the sidebar a dropdown trigger for its current title and subtitle. In the expanded state, the trigger uses the sidebar width and can show a logo or initial. In the collapsed state, it keeps the visual mark while hiding the text and chevron. Without menu items, it remains a static identity block rather than a tab stop. SidebarCollapseToggle uses the sidebar's shared collapse state, so a caller can place the same expand or collapse action among normal sidebar rows.
SidebarCard adds compact supplemental content to the sidebar without changing navigation state. It can show a themed status icon, description, optional dismiss control, and one async action; the action stays busy until its callback settles and exposes dismissal to the caller.
The desktop shell owns the active scroll region. Use its default scroll mode for one page flow. Set scroll to false when a list-and-detail view or another multi-pane layout must give overflow to its inner panes instead.
References: src/…/DesktopShell.vue• L1-33 src/…/DesktopShell.md• L1-57 src/…/DesktopShell.api.md• L7-32 src/…/types.ts• L1-15 src/…/DesktopShell.cy.ts• L37-108 src/…/Default.vue• L61-141 src/…/SidebarRail.md• L1-39 src/…/SidebarRail.api.md• L7-104 src/…/SidebarRailItem.vue• L1-71 src/…/SidebarRailItem.vue• L101-149 src/…/types.ts• L4-46 src/…/Sidebar.md• L1-110 src/…/Sidebar.api.md• L7-225 src/…/Sidebar.vue• L1-60 src/…/SidebarItem.vue• L1-127 src/…/SidebarItem.vue• L181-230 src/…/Sidebar.cy.ts• L174-359 src/…/Sidebar.cy.ts• L594-627 src/…/SidebarSection.vue• L1-81 src/…/SidebarLabel.vue• L1-39 src/…/SidebarCollapseToggle.vue• L1-23 src/…/SidebarHeader.vue• L1-17 src/…/SidebarHeader.vue• L55-93 src/…/SidebarCard.vue• L19-126 src/…/SidebarCard.vue• L129-206
Mobile shell
MobileShell uses a full-height frame with a pinned header, native momentum-scrolling content, and a bottom navigation slot. MobileNav gives each MobileNavItem an equal-width place in the bar. In an installed PWA, the bar adds bottom padding for the device home indicator; in a browser tab it keeps the normal edge. A current item acts as a button that scrolls the shell to the top instead of navigating to the same route again.
Desktop and mobile shells are separate navigation models. The application chooses the shell for the viewport, while both register their active content scroll area and page-header target so route behavior, page controls, and scroll-to-top actions use the same high-level contract. A page receives the scroll region and header target owned by the shell that renders it, even when several shells exist at once.
flowchart TB
subgraph Desktop
DR[SidebarRail] --> DS[Sidebar]
DS --> DH[Pinned page header]
DH --> DC[Main content scroll area]
end
subgraph Mobile
MH[Pinned page header] --> MC[Native content scroll area]
MC --> MN[Bottom navigation]
end
DC -. shared scroll contract .- MC
References: src/…/MobileShell.vue• L1-26 src/…/MobileShell.md• L1-23 src/…/MobileShell.cy.ts• L12-34 src/…/MobileShell.cy.ts• L36-131 src/…/MobileShell.cy.ts• L134-189 src/…/MobileNav.vue• L1-21 src/…/MobileNavItem.vue• L10-20 src/…/MobileNavItem.vue• L108-127
Page headers
PageHeader is the page-level header that the shell pins above its content. The header can hold a title, breadcrumbs, and actions. Its mobile form keeps the title centered between left and right controls and provides a back action that uses in-app history before a safe fallback route.
The header also provides a simple scroll-to-top affordance: a click on its empty area scrolls the active shell content, while interactive controls do not trigger that behavior.
References: src/…/PageHeader.md• L1-26 src/…/PageHeader.vue• L1-18 src/…/PageHeaderBackButton.vue• L1-25
Change checklist
When these files or sections are changed, remember to consider these:
- Keep
Popover,Dropdown,Tooltip,HoverCard, and selection-style panels aligned with the shared portal target and floating-surface contract. - If a popover trigger or content slot changes, preserve automatic trigger wiring, the
openstate contract, and the contentclosepath so consumers do not add a second toggle. - If a controlled popover changes its event contract, keep request state (
update:open) separate from the state the component actually reaches (openandclose). - If popover typing support changes, keep manual trigger mode, reference-element placement, and the
autoFocusbehavior aligned with input controls. - If hover-card timing changes, keep pointer movement from the trigger into the card usable and preserve keyboard focus access.
- If tooltip mounting or provider behavior changes, keep the trigger present before activation, preserve focus and typing on first mount, and keep the skip-delay window shared across tooltip-bearing buttons and standalone
Tooltipinstances. - If menu option shapes change, update grouped data that uses
optionsand preserve the separate route, callback, switch, and submenu contracts shared by dropdowns and context menus. - If a menu option changes its route or callback behavior, check both dropdown and context-menu consumers because they share the menu model.
- If the context-menu public types or exports change, keep its controlled
openmodel,update:openevent, trigger-slot state, portal target, and shared menu option aliases aligned. - If context-menu open or close handling changes, preserve pointer placement, keyboard dismissal, scroll-lock release, and the same-tick open/close behavior on every close path.
- If dropdown trigger handling changes, preserve the disabled state from both the trigger attributes and the button configuration, and keep mouse, touch, and keyboard activation paths distinct.
- If tab selection changes, preserve the semantic split between
Tabspanel or route selection andTabButtonsvalue selection. - If route tabs change, keep manual activation, route-derived selection, disabled-trigger filtering, mixed route/local selection, and route-reset rules aligned.
- If
TabButtonsoptions change, keep stable values, route and link rendering, stale-value behavior, accessible labels, focus behavior, and the sliding active indicator aligned. - If the shared tab indicator changes, keep the
TabsandTabButtonsdata-slot hooks and geometry aligned across variants, sizes, and fluid layouts. - If shell scroll ownership changes, keep desktop and mobile registration consistent so page headers, route behavior, and scroll-to-top actions use the active surface.
- If mobile navigation changes, preserve equal-width items, current-route scroll-to-top behavior, and the installed-PWA safe-area rule.
- If a navigation item changes its link or active rules, check the separate current-route and highlighted-section behavior in sidebar and mobile navigation items.
- If the sidebar composition changes, preserve its single named
navlandmark, child collapse context, and app-owned header, scroll, and footer regions. - If
SidebarItemchanges, preserve the route, external-link, and button choices, route-derived active state, visible focus path, full-row attributes, the separate trailing zone for interactive content, and the page-facing direction of collapsed tooltips. - If sidebar placement changes, keep collapsed-item tooltips opening toward the page for both left and right navigation positions.
- If
SidebarSectionchanges, keep its group name, collapse trigger state, and bound or internal section state separate from the whole-sidebar collapse state. - If
SidebarLabelorSidebarCollapseTogglechanges, keep section labels and collapse controls aligned with the sidebar's shared collapse context and preserve their non-interactive or row-control semantics. - If the sidebar rail changes, keep link, button, active-state, badge, accessible unread label, and tooltip behavior consistent for both standalone items and items inside a shell.
- If the sidebar header changes its menu or collapsed presentation, preserve the shared header height, stable identity position, and the expanded and collapsed trigger behavior.
- If sidebar card actions change, preserve the caller's dismiss path and the loading state that blocks duplicate async actions.
- If bottom-sheet gesture or scroll behavior changes, keep body scrolling, nested scrollers, text fields, protected regions, pointer capture, and the dismissible setting consistent across touch and mouse input.
- If modal dismissal changes, check outside interaction,
Escape, focus placement, scroll lock, editor floating content, and the delayed close lifecycle together. - If dialog bindings or action behavior changes, keep canonical
open, legacymodelValue, bare content, async loading, and prompt validation semantics aligned with the imperative helpers. - If dialog overlay structure changes, keep field click-to-focus behavior and editor suggestion interaction separate from backdrop dismissal.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
Required information is placed only in Tooltip or HoverCard content | Keyboard or touch users may not reach the information | Keep essential content in the page or modal flow; use these overlays for hints and optional previews. |
A Popover or menu is kept open without handling its own close action | The user can lose the normal outside-click or Escape path | Use non-dismissible mode only when the panel provides a clear confirm or cancel action. |
| A popover trigger adds its own click toggle | One activation can close and reopen the panel or leave its state wrong | Use the trigger slot's automatic click and keyboard wiring; use its state or toggle helper only when needed. |
A controlled parent rejects a popover open request but treats open as a request event | The parent can start open-only work even though no panel opened | Treat update:open as the request and open as confirmation of reached state. |
| A typing-driven popover uses click trigger mode or takes focus on open | Clicking the input can toggle the panel or move the caret away | Use trigger="manual" and autoFocus="false" when the input drives the panel. |
| A hover card uses a short delay but closes as the pointer crosses into its body | Users cannot inspect or use the preview | Keep the trigger-to-card hover path open and use Tooltip for shorter hints. |
| A tooltip group mounts separate provider contexts | Moving between neighboring controls repeats the full hover delay | Place the controls under one TooltipProvider and let tooltips reuse it. |
| A tooltip wrapper is expected to expose its full popup before hover or focus | The page pays for unnecessary popup work or a focused trigger loses its focus during mounting | Keep the trigger as the initial rendered surface and preserve focus when the tooltip mounts on first activation. |
A menu group still supplies the old items key | Group contents fail the current menu option contract | Put group entries in options and keep action, switch, and submenu fields mutually consistent. |
| A dropdown trigger is disabled only through one of its supported input paths | A disabled control can still open the menu | Keep the button configuration and trigger attributes in agreement. |
| A context menu remains open after its host closes it through a same-tick control path | The menu can remain visible and keep blocking wheel or touch input | Use the exposed close path and preserve the delayed dismissal guard for not-yet-mounted content. |
A route is represented with TabButtons | Assistive technology receives value-choice semantics instead of navigation semantics | Use Tabs for panels or routes and TabButtons for a filter, setting, or form value. |
| A routed tab is added after the root decides its activation mode | Arrow keys can select a route tab without navigating to it | Render route tabs from the start, or recreate the tab root once the route items are known. |
| A route tab uses automatic activation | Arrow keys can change the selected view without following the route | Keep route lists in manual activation mode so Enter or click commits navigation. |
A mixed Tabs list clears a local selection for a query-only or hash-only change | A panel can jump back to the route tab while its own URL state changes | Keep the local selection until the path or matched route tab changes. |
A TabButtons option has no stable value or its model names a missing value | Selection and the active indicator can remain empty or lose their target | Give every option a stable value and treat a stale model as an intentional unselected state. |
| A tab indicator changes the trigger geometry or clips its focus ring | Labels can move between selections or keyboard focus becomes hard to see | Keep the indicator in its own layer and preserve the shared track and data-slot contract. |
| A bottom-sheet drag takes control from a scrolled or interactive child | A list stops scrolling or a field or carousel moves the sheet instead | Claim only a downward drag at the top of the nearest scroller; leave fields and protected regions alone. |
| A bottom sheet is mounted closed or reopened without rebinding its gesture surface | The sheet opens but touch dismissal does not work | Bind the gesture to the sheet surface each time the modal content mounts. |
| A selected mobile navigation item is treated as a link on its current route | Tapping the active item repeats navigation instead of returning to the content top | Preserve the current-route button behavior and the shell scroll contract. |
| An installed PWA uses the mobile bar without its safe-area rule | The home indicator can cover the last navigation row | Apply the standalone display-mode padding and keep browser-tab navigation unpadded. |
| A content pane is placed in a shell with the wrong scroll mode | The page can scroll at the wrong level or inner panes can lose their available height | Choose one shell scroll region for page flow, or disable shell scrolling when inner panes own overflow. |
An app adds another nav wrapper around composed sidebar content | Screen readers receive duplicate navigation landmarks for one sidebar | Use the sidebar's single named landmark and keep app-owned wrappers inside it as non-landmark containers. |
A sidebar row uses both route and href but expects the external URL to win | The row follows the route instead of the external destination | Treat route as the navigation target when both props are present. |
| Interactive options are placed inside a sidebar link or button | The markup has nested controls and the options action becomes unreliable | Put row actions in the trailing slot, which stays a sibling of the main control. |
| A collapsed sidebar row has no usable label or prefix content | Users see an unlabeled icon-only control | Supply a label or meaningful default-slot text so the collapsed tooltip and accessible name can identify the row. |
| A collapsed sidebar is placed on the wrong side and keeps the tooltip inside the navigation column | The tooltip can be clipped or cover the navigation instead of opening into the page | Derive the tooltip side from the shell's navigation side so left navigation opens right and right navigation opens left. |
| A modal is closed before async work settles | The user can lose feedback or trigger duplicate actions | Keep the action loading state until the handler or validation settles; show rejected work inside the modal. |
| A sidebar card action does not pass through its pending state | Repeated activation can start duplicate work | Keep the action busy until its callback resolves or rejects. |
| A sidebar section uses the whole-sidebar collapse state for its own open state | Expanding or collapsing the sidebar also changes which groups are open | Keep section collapse state separate and use the shared state only for its presentation. |
| A dialog places interactive content inside the backdrop layer | Clicking a second field can fail to move focus from the first field | Keep the backdrop and content as separate layers. |
Key files
| File | Why to read it |
|---|---|
| src/…/Popover.vue | Shows the core anchored overlay state, portal, placement, and dismissal contract. |
| src/…/Popover.api.md | Defines the public popover placement, surface, reference, and state options. |
| src/…/PopoverPanel.vue | Defines the shared floating-panel surface and motion rhythm. |
| src/…/HoverCard.vue | Shows delayed hover preview behavior and its shared panel relationship with popovers. |
| src/…/Tooltip.vue | Shows deferred trigger mounting, tooltip content, disabled behavior, and provider reuse. |
| src/…/TooltipBubble.vue | Shows the shared tooltip portal, bubble, arrow, and caller-owned bare-content surface. |
| src/…/TooltipProvider.vue | Shows the group delay contract for neighboring tooltip triggers. |
| src/…/Tooltip.cy.ts | Shows first activation, focus preservation, disabled behavior, rich content, bare content, and grouped delay behavior. |
| src/…/Menu.vue | Shows how dropdown and context-menu actions share groups, submenus, switches, and navigation. |
| src/…/types.ts | Defines the shared menu option and group contract used by dropdowns and context menus. |
| src/…/ContextMenu.vue | Shows right-click placement, controlled trigger state, portal behavior, keyboard close, and scroll locking. |
| src/…/ContextMenu.cy.ts | Shows grouped actions, controlled open state, portal targets, keyboard paths, scroll lock, and viewport scrolling. |
| src/…/types.ts | Defines the context-menu open model, trigger-slot state, and public aliases for the shared menu contract. |
| src/…/Dropdown.vue | Shows dropdown trigger, portal, placement, disabled, and open-state behavior. |
| src/…/Dropdown.cy.ts | Shows pointer, touch, keyboard, submenu, disabled-item, and long-menu behavior. |
| src/…/Dropdown.api.md | Shows the public dropdown control and placement contract. |
| src/…/Dialog.vue | Shows the general modal surface and its focus, close, async action, content, and backdrop structure. |
| src/…/Dialog.api.md | Defines dialog bindings, dismissal, bare content, and action options. |
| src/…/dialog.ts | Shows the product-level confirm, danger, and prompt flows. |
| src/…/BottomSheet.vue | Shows the mobile modal model, focus behavior, scroll boundary, and touch dismissal behavior. |
| src/…/BottomSheet.test.ts | Shows the gesture contract for nested scrolling, protected children, pointer capture, and reopen behavior. |
| src/…/Tabs.vue | Shows the relationship between selected content, route state, disabled items, fallback values, and keyboard activation. |
| src/…/TabTrigger.vue | Shows how tab triggers connect route links, selected visuals, orientation, and custom label content. |
| src/…/Tabs.cy.ts | Shows route-mode, mixed-selection, keyboard, and shared-indicator behavior. |
| src/…/TabButtons.vue | Shows value selection, route and link variants, accessible labels, focus behavior, and the active indicator. |
| src/…/TabButtons.md | Explains the value-choice meaning, public focus method, and styling contract. |
| src/…/types.ts | Defines the value, route, link, and presentation contract for value-choice tabs. |
| src/…/DesktopShell.vue | Shows the desktop frame and shared content scroll region. |
| src/…/DesktopShell.md | Explains the shell's pinned header, scroll ownership, and multi-pane mode. |
| src/…/MobileShell.vue | Shows the mobile frame and its native content scroll region. |
| src/…/MobileShell.cy.ts | Shows mobile shell scroll and header ownership plus installed-PWA safe-area behavior. |
| src/…/SidebarRail.md | Explains the narrow navigation column and the link, active, badge, and tooltip behavior of its items. |
| src/…/SidebarRailItem.vue | Shows route-aware rail items, accessible unread labels, and tooltip behavior. |
| src/…/Sidebar.md | Explains the sidebar as a composable navigation frame and its accessibility and collapse rules. |
| src/…/Sidebar.vue | Shows the sidebar landmark, responsive collapse state, width contract, and child state context. |
| src/…/Sidebar.api.md | Defines the public sidebar, item, header, label, section, and card contracts. |
| src/…/SidebarHeader.vue | Shows the sidebar title menu and its expanded or collapsed presentation. |
| src/…/SidebarItem.vue | Shows route-aware sidebar navigation, active state, collapsed labels, full-row attributes, the separate trailing zone, and page-facing tooltip placement. |
| src/…/Sidebar.cy.ts | Shows sidebar composition, item contracts, attribute routing, focus behavior, and tooltip placement for left and right navigation. |
| src/…/SidebarSection.vue | Shows labeled sidebar groups and their local collapse behavior. |
| src/…/SidebarLabel.vue | Shows group labels and the optional divider used when the sidebar is collapsed. |
| src/…/SidebarCollapseToggle.vue | Shows the row-level control that reads and changes shared sidebar collapse state. |
| src/…/types.ts | Defines the sidebar navigation, identity, section, and supplemental-card contracts. |
| src/…/SidebarCard.vue | Shows compact sidebar content, dismissal, themed actions, and async action state. |
| src/…/Default.vue | Shows an app-owned header and scroll region composed with sidebar rows and row-level menus. |
| src/…/MobileNav.vue | Shows equal-width mobile navigation and standalone-display safe-area behavior. |
| src/…/MobileNavItem.vue | Shows current-route activation and scroll-to-top behavior on mobile. |
| src/…/PageHeader.md | Explains how page headers attach to shell targets and support mobile back navigation. |