App Providercomponent
Sets up the Polaris and injects the App Bridge script.
This component extends the component from Polaris, and accepts all of its props except for
, which is overridden to use the Remix
Link
component.
Anchor to appproviderpropsAppProviderProps
Props for the component.
The API key for your Shopify app. This is the from the Partner Dashboard.
When using the Shopify CLI, this is the environment variable. If you're using the environment variable, then you need to pass it from the loader to the component.
Inner content of the application
For toggling features
The internationalization (i18n) configuration for your Polaris provider.
Whether the app is loaded inside the Shopify Admin. Default is true
.
Anchor to examplesExamples
Anchor to example-set-up-appproviderSet up AppProvider
Wrap your app in the component and pass in your API key.
Anchor to example-localize-polaris-componentsLocalize Polaris components
Pass in a different locale for Polaris to translate its components.