Open Arlen22 opened 2 months ago
Hey there,
You're correct that Shopify App Bridge is mainly used for apps embedded inside Shopify admin, which is why it's a bit tricky to integrate it directly into a standalone web app. That said, you can still use the Polaris design system without App Bridge.
If you're building a standalone web app and don’t need to communicate with Shopify (i.e., it’s not an embedded app), you can skip using App Bridge components like NavigationMenu. Instead, you can use Polaris components like Navigation, TopBar, and Frame to create custom navigation.
Here's a quick summary of what you can do:
No way to do so. App bridge must be used in the Shopify admin
Hey @Arlen22 👋🏽 The green path for Shopify app development is embedded apps, UI extensions, server functions, and storefront themes. shopify.dev documentation documents everything you need to build for these parts of the platform. App Bridge isn't necessary for standalone apps, as it's purpose is to provide the interop layer for apps to seamlessly embed into the Shopify admin. You can use any UI library or development stack that you want for your standalone app, as long as it does not look like the Shopify admin and meets App Store Requirements. You'll just need to set up Shopify OAuth and use your API key to communicate with the Shopify admin APIs.
The Polaris design system is meant to provide Partners and App Developers with the front end design and development tools needed to build embedded apps that are consistent with the rest of the Shopify admin. Polaris can only be used in standalone apps if you fork and completely change the styles to not look like the Shopify admin, as it's very important that merchants understand whether or not they are in a 3rd party app or in the Shopify admin. The TopBar and Navigation components are deprecated as these aren't needed for embedded apps, but they are still available though in the current major version (you use them directly if you are not embedding your app, see Frame stories for examples).
Summary
I'm building a standalone webapp using Polaris, but the Polaris documentation does not say how to integrate app bridge nav menu and stuff like that into a standalone website. Apparently it's part of the Shopify admin, and I can't seem to find any standalone version.
Are you using React components?
Yes