Skip to content

Beta

These App Bridge components are new, and their API may change in a minor release while in beta. Their behaviour is checked in a live Shopify admin by a local E2E suite. If something doesn't work, please open an issue.

App Bridge types ​

The types used on the App Bridge pages, and every type they reference, from @shopify/app-bridge-types 0.7.5. polaris-vue-elements/app-bridge re-exports the ones the package exports. The descriptions are Shopify's own JSDoc, in English.

Pages ​

ShopifyGlobal ​

interface

Import: import type { ShopifyGlobal } from 'polaris-vue-elements/app-bridge'

config: AppBridgeConfig

Not described in the types.

origin: string

Not described in the types.

ready: Promise<void>

Not described in the types.

setSignals(RealSignal: any): void

Registers a signals implementation (e.g. from @preact/signals) so that reactive values returned by App Bridge use the app's own Signal class instead of the built-in lightweight shim. Any signals created before this call are migrated to the provided implementation.

environment: EnvironmentApi

Not described in the types.

loading: LoadingApi

Not described in the types.

idToken: IdTokenApi

Not described in the types.

user: UserApi

Not described in the types.

toast: ToastApi

Not described in the types.

resourcePicker: ResourcePickerApi

Not described in the types.

scanner: ScannerApi

Not described in the types.

modal: ModalApi

Not described in the types.

saveBar: SaveBarApi

Not described in the types.

pos: PosApi

Not described in the types.

intents: IntentsApi

Not described in the types.

webVitals: WebVitalsApi

Not described in the types.

support: SupportApi

Not described in the types.

reviews: ReviewsApi

Not described in the types.

appEvents: AppEventsApi

Emits app events for the app's Dev Dashboard.

scopes: Scopes

Not described in the types.

picker: PickerApi

Not described in the types.

app: AppApi

Not described in the types.

shopifyQL: ShopifyQLApi

Not described in the types.

sidekick: SidekickApi

Start Sidekick conversations for the merchant from your app.

shopify.sidekick is always defined, but its methods reject when Sidekick isn't available to the app, for example in the Shopify mobile app or on a store without Sidekick. Feature-detect with isEnabled() and treat a rejection as unavailable.

tools: Tools

Entry point for Shopify tools.

Enables apps to bind runtime handler functions for tools already declared in app extension configuration, which can be invoked by the platform on behalf of the app. Registered tools are scoped to the current app and persist for the lifetime of the app or until explicitly removed.

A–Z index ​

Released under the MIT License. Vue logo by Evan You, CC BY-NC-SA 4.0.