vapor-chamber API reference - v1.16.0
    Preparing search index...

    Function pathActivity

    • Shared active/exact semantics for a link target against the current path — data-active stamping (dom.ts) and useMenu() both go through here, so a Blade-rendered menu and a Vue-rendered menu can never disagree. Trailing-slash tolerant. exact = same path; active = exact or path prefix ('/' is never a prefix-active catch-all).

      Parameters

      • targetPath: string
      • currentPath: string

      Returns { active: boolean; exact: boolean }