Skip to content

ContextSwitcher API

API reference docs for the Stash ContextSwitcher component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import ContextSwitcher from '@leaflink/stash/ContextSwitcher.vue';

Props

NameTypeDefaultDescription
activeAppAppValues-The current app that is active. Choices are 'marketplace' | 'payments'.
limitedAccessUrlstring '-' Url to replace the other app if current user does not have portal access.
portalAccess{ commercePortal: boolean; paymentsPortal: boolean; }() => ({ commercePortal: false, paymentsPortal: false, })Portal access to both marketplace and payments.
routeQueryLocationQuery() => ({})

Slots

None

Events

NameDescription
clickFires on click of the context switcher.
switchFires on click of the context switcher.