--- title: shopify-store description: >- Use the `` component to set up your credentials and market configuration for a storefront. You can optionally add a public access token, which gives you access to your store's inventory, metafields, and metaobjects. You can get a public access token by [adding the Headless channel](/docs/api/storefront-web-components/getting-started#connect-your-store) in your Shopify admin. See the [playground](https://webcomponents.shopify.dev/playground) for more complete examples. api_name: storefront-web-components source_url: html: >- https://shopify.dev/docs/api/storefront-web-components/components/shopify-store md: >- https://shopify.dev/docs/api/storefront-web-components/components/shopify-store.md --- # shopify-store Use the `` component to set up your credentials and market configuration for a storefront. You can optionally add a public access token, which gives you access to your store's inventory, metafields, and metaobjects. You can get a public access token by [adding the Headless channel](https://shopify.dev/docs/api/storefront-web-components/getting-started#connect-your-store) in your Shopify admin. See the [playground](https://webcomponents.shopify.dev/playground) for more complete examples. ## Attributes * store-domain string required The myshopify.com domain of the store. * buyNow (e: Event, options?: BuyNowOptions) => void A method to open the checkout page with a selected product. * country CountryCode The country of the store. * language LanguageCode The language of the store. * public-access-token string The public access token from the [Headless channel](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/manage-headless-channels) for the store. This attribute is required if you want to access product inventory count, metafields, or metaobjects. ### BuyNowOptions * discountCodes ```ts string[] ``` * target ```ts Target ``` ```ts interface BuyNowOptions { discountCodes?: string[]; target?: Target; } ``` ### Target The anchor target attribute for a link. ```ts "_blank" | "_self" | "_parent" | "_top" | "_unfencedTop" ``` ### Examples * #### example ##### Description This is the default example ##### HTML ```html ```