Introducing a new way to review your PRs.

Read the announcement

frappe / frappe-ui

The all-in-one toolkit for modern frontends. High-quality components, app recipes and AI-ready docs.

View on GitHub

28 documents · Updated Nov 23, 2026

docs / overlays-and-navigation

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.

NeedComponentRole
Focused task or confirmationDialogBlocks the page with a titled surface for content, forms, or actions.
Mobile focused taskBottomSheetPresents modal content from the bottom edge with touch-friendly dismissal.
Triggered supporting contentPopoverAnchors a panel to a trigger without changing page layout.
Short help textTooltipShows a brief hint on hover or focus.
Hover-based previewHoverCardShows non-essential preview content while a trigger is hovered or focused.
Trigger-based actionsDropdownShows grouped actions, switches, and nested menus.
Pointer-based actionsContextMenuShows actions at the point where a user right-clicks.
Content or route switchTabsSelects visible panels or navigates between related routes.
Value choiceTabButtonsSelects one value with radio-group semantics.
Desktop navigation frameDesktopShellHolds the rail, sidebar, page header, and main scroll area.
Mobile navigation frameMobileShellHolds 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

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 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 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 open state contract, and the content close path 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 (open and close).
  • If popover typing support changes, keep manual trigger mode, reference-element placement, and the autoFocus behavior 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 Tooltip instances.
  • If menu option shapes change, update grouped data that uses options and 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 open model, update:open event, 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 Tabs panel or route selection and TabButtons value selection.
  • If route tabs change, keep manual activation, route-derived selection, disabled-trigger filtering, mixed route/local selection, and route-reset rules aligned.
  • If TabButtons options 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 Tabs and TabButtons data-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 nav landmark, child collapse context, and app-owned header, scroll, and footer regions.
  • If SidebarItem changes, 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 SidebarSection changes, keep its group name, collapse trigger state, and bound or internal section state separate from the whole-sidebar collapse state.
  • If SidebarLabel or SidebarCollapseToggle changes, 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, legacy modelValue, 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

TriggerConsequenceGuard
Required information is placed only in Tooltip or HoverCard contentKeyboard or touch users may not reach the informationKeep 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 actionThe user can lose the normal outside-click or Escape pathUse non-dismissible mode only when the panel provides a clear confirm or cancel action.
A popover trigger adds its own click toggleOne activation can close and reopen the panel or leave its state wrongUse 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 eventThe parent can start open-only work even though no panel openedTreat update:open as the request and open as confirmation of reached state.
A typing-driven popover uses click trigger mode or takes focus on openClicking the input can toggle the panel or move the caret awayUse 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 bodyUsers cannot inspect or use the previewKeep the trigger-to-card hover path open and use Tooltip for shorter hints.
A tooltip group mounts separate provider contextsMoving between neighboring controls repeats the full hover delayPlace the controls under one TooltipProvider and let tooltips reuse it.
A tooltip wrapper is expected to expose its full popup before hover or focusThe page pays for unnecessary popup work or a focused trigger loses its focus during mountingKeep 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 keyGroup contents fail the current menu option contractPut 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 pathsA disabled control can still open the menuKeep the button configuration and trigger attributes in agreement.
A context menu remains open after its host closes it through a same-tick control pathThe menu can remain visible and keep blocking wheel or touch inputUse the exposed close path and preserve the delayed dismissal guard for not-yet-mounted content.
A route is represented with TabButtonsAssistive technology receives value-choice semantics instead of navigation semanticsUse 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 modeArrow keys can select a route tab without navigating to itRender route tabs from the start, or recreate the tab root once the route items are known.
A route tab uses automatic activationArrow keys can change the selected view without following the routeKeep 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 changeA panel can jump back to the route tab while its own URL state changesKeep the local selection until the path or matched route tab changes.
A TabButtons option has no stable value or its model names a missing valueSelection and the active indicator can remain empty or lose their targetGive 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 ringLabels can move between selections or keyboard focus becomes hard to seeKeep 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 childA list stops scrolling or a field or carousel moves the sheet insteadClaim 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 surfaceThe sheet opens but touch dismissal does not workBind 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 routeTapping the active item repeats navigation instead of returning to the content topPreserve the current-route button behavior and the shell scroll contract.
An installed PWA uses the mobile bar without its safe-area ruleThe home indicator can cover the last navigation rowApply the standalone display-mode padding and keep browser-tab navigation unpadded.
A content pane is placed in a shell with the wrong scroll modeThe page can scroll at the wrong level or inner panes can lose their available heightChoose 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 contentScreen readers receive duplicate navigation landmarks for one sidebarUse 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 winThe row follows the route instead of the external destinationTreat route as the navigation target when both props are present.
Interactive options are placed inside a sidebar link or buttonThe markup has nested controls and the options action becomes unreliablePut row actions in the trailing slot, which stays a sibling of the main control.
A collapsed sidebar row has no usable label or prefix contentUsers see an unlabeled icon-only controlSupply 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 columnThe tooltip can be clipped or cover the navigation instead of opening into the pageDerive 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 settlesThe user can lose feedback or trigger duplicate actionsKeep 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 stateRepeated activation can start duplicate workKeep the action busy until its callback resolves or rejects.
A sidebar section uses the whole-sidebar collapse state for its own open stateExpanding or collapsing the sidebar also changes which groups are openKeep section collapse state separate and use the shared state only for its presentation.
A dialog places interactive content inside the backdrop layerClicking a second field can fail to move focus from the first fieldKeep the backdrop and content as separate layers.

Key files

FileWhy to read it
src/…/Popover.vueShows the core anchored overlay state, portal, placement, and dismissal contract.
src/…/Popover.api.mdDefines the public popover placement, surface, reference, and state options.
src/…/PopoverPanel.vueDefines the shared floating-panel surface and motion rhythm.
src/…/HoverCard.vueShows delayed hover preview behavior and its shared panel relationship with popovers.
src/…/Tooltip.vueShows deferred trigger mounting, tooltip content, disabled behavior, and provider reuse.
src/…/TooltipBubble.vueShows the shared tooltip portal, bubble, arrow, and caller-owned bare-content surface.
src/…/TooltipProvider.vueShows the group delay contract for neighboring tooltip triggers.
src/…/Tooltip.cy.tsShows first activation, focus preservation, disabled behavior, rich content, bare content, and grouped delay behavior.
src/…/Menu.vueShows how dropdown and context-menu actions share groups, submenus, switches, and navigation.
src/…/types.tsDefines the shared menu option and group contract used by dropdowns and context menus.
src/…/ContextMenu.vueShows right-click placement, controlled trigger state, portal behavior, keyboard close, and scroll locking.
src/…/ContextMenu.cy.tsShows grouped actions, controlled open state, portal targets, keyboard paths, scroll lock, and viewport scrolling.
src/…/types.tsDefines the context-menu open model, trigger-slot state, and public aliases for the shared menu contract.
src/…/Dropdown.vueShows dropdown trigger, portal, placement, disabled, and open-state behavior.
src/…/Dropdown.cy.tsShows pointer, touch, keyboard, submenu, disabled-item, and long-menu behavior.
src/…/Dropdown.api.mdShows the public dropdown control and placement contract.
src/…/Dialog.vueShows the general modal surface and its focus, close, async action, content, and backdrop structure.
src/…/Dialog.api.mdDefines dialog bindings, dismissal, bare content, and action options.
src/…/dialog.tsShows the product-level confirm, danger, and prompt flows.
src/…/BottomSheet.vueShows the mobile modal model, focus behavior, scroll boundary, and touch dismissal behavior.
src/…/BottomSheet.test.tsShows the gesture contract for nested scrolling, protected children, pointer capture, and reopen behavior.
src/…/Tabs.vueShows the relationship between selected content, route state, disabled items, fallback values, and keyboard activation.
src/…/TabTrigger.vueShows how tab triggers connect route links, selected visuals, orientation, and custom label content.
src/…/Tabs.cy.tsShows route-mode, mixed-selection, keyboard, and shared-indicator behavior.
src/…/TabButtons.vueShows value selection, route and link variants, accessible labels, focus behavior, and the active indicator.
src/…/TabButtons.mdExplains the value-choice meaning, public focus method, and styling contract.
src/…/types.tsDefines the value, route, link, and presentation contract for value-choice tabs.
src/…/DesktopShell.vueShows the desktop frame and shared content scroll region.
src/…/DesktopShell.mdExplains the shell's pinned header, scroll ownership, and multi-pane mode.
src/…/MobileShell.vueShows the mobile frame and its native content scroll region.
src/…/MobileShell.cy.tsShows mobile shell scroll and header ownership plus installed-PWA safe-area behavior.
src/…/SidebarRail.mdExplains the narrow navigation column and the link, active, badge, and tooltip behavior of its items.
src/…/SidebarRailItem.vueShows route-aware rail items, accessible unread labels, and tooltip behavior.
src/…/Sidebar.mdExplains the sidebar as a composable navigation frame and its accessibility and collapse rules.
src/…/Sidebar.vueShows the sidebar landmark, responsive collapse state, width contract, and child state context.
src/…/Sidebar.api.mdDefines the public sidebar, item, header, label, section, and card contracts.
src/…/SidebarHeader.vueShows the sidebar title menu and its expanded or collapsed presentation.
src/…/SidebarItem.vueShows route-aware sidebar navigation, active state, collapsed labels, full-row attributes, the separate trailing zone, and page-facing tooltip placement.
src/…/Sidebar.cy.tsShows sidebar composition, item contracts, attribute routing, focus behavior, and tooltip placement for left and right navigation.
src/…/SidebarSection.vueShows labeled sidebar groups and their local collapse behavior.
src/…/SidebarLabel.vueShows group labels and the optional divider used when the sidebar is collapsed.
src/…/SidebarCollapseToggle.vueShows the row-level control that reads and changes shared sidebar collapse state.
src/…/types.tsDefines the sidebar navigation, identity, section, and supplemental-card contracts.
src/…/SidebarCard.vueShows compact sidebar content, dismissal, themed actions, and async action state.
src/…/Default.vueShows an app-owned header and scroll region composed with sidebar rows and row-level menus.
src/…/MobileNav.vueShows equal-width mobile navigation and standalone-display safe-area behavior.
src/…/MobileNavItem.vueShows current-route activation and scroll-to-top behavior on mobile.
src/…/PageHeader.mdExplains how page headers attach to shell targets and support mobile back navigation.