--- title: App Window description: The `s-app-window` component displays a fullscreen modal window. It allows you to open up a page in your app specified by the `src` property. You can use this when you have larger or complex workflows that you want to display. The app window covers the entirety of the screen. The top bar of the app window is controlled by the admin and allows the user to exit if needed. api_name: app-home source_url: html: https://shopify.dev/docs/api/app-home/app-bridge-web-components/app-window md: https://shopify.dev/docs/api/app-home/app-bridge-web-components/app-window.md --- # App Window The `s-app-window` component displays a fullscreen modal window. It allows you to open up a page in your app specified by the `src` property. You can use this when you have larger or complex workflows that you want to display. The app window covers the entirety of the screen. The top bar of the app window is controlled by the admin and allows the user to exit if needed. ## s-app-window element The `s-app-window` element is available for use in your app. It configures a App Window to display in the Shopify Admin. The content of the app window is specified by the src property and should point to a route within your app. * src string required The URL of the content to display within the S-App-Window. S-App-Window only supports src-based content (required). * id string A unique identifier for the S-App-Window ## s-app-window instance The `s-app-window` element provides instance properties and methods to control the App Window. * content undefined required Always returns undefined for s-app-window (src-only) * addEventListener (type: "show" | "hide", listener: EventListenerOrEventListenerObject) => void Add 'show' | 'hide' event listeners. * contentWindow Window | null A getter for the Window object of the s-app-window iframe. Only accessible when the s-app-window is open. * hide () => Promise\ Hides the s-app-window element * removeEventListener (type: "show" | "hide", listener: EventListenerOrEventListenerObject) => void Remove 'show' | 'hide' event listeners. * show () => Promise\ Shows the s-app-window element * src string A getter/setter for the s-app-window src URL * toggle () => Promise\ Toggles the s-app-window element between showing and hidden states ### Examples * #### App Window ##### App Window ```html Open App Window ``` ## Preview ![](https://shopify.dev/images/templated-apis-screenshots/admin/app-bridge-web-components/s-app-window.png) ## Examples App Window title bar options ### App Window title bar options Title bar heading App Window title Title bar actions App Window title bar actions ### Examples * #### Title bar heading ##### Description App Window title ##### Default ```html // app-window-content.html ``` * #### Title bar actions ##### Description App Window title bar actions ##### Default ```html // app-window-content.html Save Close ``` ### Controlling the App Window Instance methods Controlling the App Window with the show and hide methods Command attribute Controlling the App Window with the command attribute ### Examples * #### Instance methods ##### Description Controlling the App Window with the show and hide methods ##### Default ```html Show App Window Hide App Window ``` * #### Command attribute ##### Description Controlling the App Window with the command attribute ##### Default ```html Open App Window Hide App Window Toggle App Window ``` ## Related [![](https://shopify.dev/images/icons/32/pickaxe-1.png)![](https://shopify.dev/images/icons/32/pickaxe-1-dark.png)](https://shopify.dev/docs/api/app-home/apis/modal) [APIsModal](https://shopify.dev/docs/api/app-home/apis/modal) [![](https://shopify.dev/images/icons/32/pickaxe-1.png)![](https://shopify.dev/images/icons/32/pickaxe-1-dark.png)](https://shopify.dev/docs/api/app-home/polaris-components/modal) [APIsModal](https://shopify.dev/docs/api/app-home/polaris-components/modal)