# Components > Shopify Polaris web components wrapped for Nuxt with Vue bindings. Browse the Polaris v2.0 reference by category. Every standalone component page includes an automatically loaded live preview and source code. Previews connect to Shopify’s CDN in isolated, lazy-loaded frames; no store credentials are used. App Bridge-only components require the authenticated playground. The module loads the stable `polaris-2.js` CDN release. Newly covered components include [EmptyState](https://shopify.yan.ad/components/feedback/empty-state), [Progress](https://shopify.yan.ad/components/feedback/progress), and [Number](https://shopify.yan.ad/components/content/number). Page, Box, Stack, Grid, Section, and Divider — structure your app pages. Button, ButtonGroup, Clickable, and Link — trigger actions and navigate. TextField, Select, Checkbox, Choice, and more — collect user input. Banner, Badge, Spinner, Tooltip, EmptyState, and Progress — communicate status and information. AppNav, Menu, Option, OptionGroup, and Popover — guide users through your app. Table, TableHeader, TableBody, TableRow, and TableCell — display structured data. Text, Number, Heading, Icon, Image, Thumbnail, Avatar, Chip, and List — render content. Modal and QueryContainer — display content above the page. App wrapper and LoadingIndicator — top-level app components. UiModal, UiTitleBar, UiSaveBar, and UiNavMenu — full-screen App Bridge overlays. ## Overview This module provides Vue wrapper components for [Shopify Polaris web components](https://shopify.dev/docs/api/app-home/web-components). Use the `Sh`-prefixed wrappers instead of raw `s-*` web components — they provide typed props with autocomplete, v-model support for form components, and work seamlessly with Vue's reactivity system. All `Sh*` components are **auto-imported** — no manual imports needed. ## Component Prefix All components use a configurable prefix (default: `Sh`). You can change it via the `componentPrefix` module option: ```ts // nuxt.config.ts export default defineNuxtConfig({ shopify: { componentPrefix: 'Shopify' // , , etc. } }) ``` The examples below use the default `Sh` prefix. ## Basic Example ```vue ``` ## App Components ### `` Wrap your app pages with `` to automatically render the [App Bridge navigation menu](https://shopify.dev/docs/api/app-home/app-bridge-web-components/app-nav) from your module config. See [ShApp reference](https://shopify.yan.ad/components/app/app). ```vue [layouts/default.vue] ``` ### `` Bridges the Nuxt loading indicator with the Shopify Admin loading bar. See [ShLoadingIndicator reference](https://shopify.yan.ad/components/app/loading-indicator). ```vue ``` ## Available Components Each Polaris component maps to its web component counterpart (e.g., `` → ``). Browse the full reference with props, events, and slots:
Category Components Reference
Layout ShPage , ShBox , ShStack , ShGrid , ShGridItem , ShSection , ShDivider Layout
Actions ShButton , ShButtonGroup , ShClickable , ShLink Actions
Forms ShTextField , ShNumberField , ShEmailField , ShPasswordField , ShUrlField , ShMoneyField , ShColorField , ShDateField , ShTextArea , ShSelect , ShCheckbox , ShSwitch , ShChoiceList , ShChoice , ShSearchField , ShDropZone , ShColorPicker , ShDatePicker Forms
Feedback ShBanner , ShBadge , ShSpinner , ShTooltip , ShEmptyState , ShProgress Feedback
Navigation ShAppNav , ShMenu , ShOption , ShOptionGroup , ShPopover Navigation
Data ShTable , ShTableHeader , ShTableHeaderRow , ShTableBody , ShTableRow , ShTableCell Data
Content ShText , ShNumber , ShHeading , ShParagraph , ShIcon , ShImage , ShThumbnail , ShAvatar , ShChip , ShClickableChip , ShListItem , ShOrderedList , ShUnorderedList Content
Overlays ShModal , ShQueryContainer Overlays
App Bridge UI ShUiModal , ShUiTitleBar , ShUiSaveBar , ShUiNavMenu App Bridge UI
## Polaris Modal (`ShModal`) `ShModal` wraps the [Polaris ``](https://shopify.dev/docs/api/app-home/web-components/overlays/modal) component — it renders **inside** your app's iframe. Open and close it using `commandFor` / `command` attributes: ```vue ``` You can also control `` programmatically: `shopify.modal.show('my-modal')`, `shopify.modal.hide('my-modal')`, `shopify.modal.toggle('my-modal')`. `ShModal` is **not** the same as the App Bridge `` which renders **outside** the iframe. If you need the App Bridge modal, use [``](https://shopify.yan.ad/components/app-bridge-ui/ui-modal). ## App Bridge UI Components (`ShUi*`) In addition to the Polaris `Sh*` components (rendered **inside** your iframe), the module provides `ShUi*` wrappers for [App Bridge UI web components](https://shopify.dev/docs/api/app-bridge-library/web-components) (`ui-*`). These render **outside** the app iframe in the Shopify Admin shell. These are the **Vue replacements** for [`@shopify/app-bridge-react`](https://www.npmjs.com/package/@shopify/app-bridge-react) components (`Modal`, `TitleBar`, `SaveBar`, `NavMenu`). ### Polaris (`Sh*`) vs App Bridge (`ShUi*`)
Polaris ( Sh* ) App Bridge ( ShUi* )
HTML elements , , etc. , , etc.
Renders in Your app's iframe Shopify Admin (outside the iframe)
Use for In-app UI: forms, tables, buttons, layout Admin-level chrome: page title, modals overlaying the admin, save bar, navigation
Controlled via Props, slots, command / commandFor useAppBridge() API ( shopify.modal.show(id) , etc.)
For detailed props, events, and usage examples, see the individual component pages: - [``](https://shopify.yan.ad/components/app-bridge-ui/ui-modal) — Full-screen modal outside the iframe - [``](https://shopify.yan.ad/components/app-bridge-ui/ui-title-bar) — Admin page title bar with action buttons - [``](https://shopify.yan.ad/components/app-bridge-ui/ui-save-bar) — Contextual save/discard bar - [``](https://shopify.yan.ad/components/app-bridge-ui/ui-nav-menu) — Admin sidebar navigation menu ## Related App Bridge APIs All `ShUi*` components can be controlled programmatically via the `shopify` global (accessed with `useAppBridge()`):
API Description Docs
shopify.modal Show, hide, and toggle modals by ID Modal API
shopify.saveBar Show, hide, toggle save bars and prompt leave confirmation Save Bar API
shopify.toast.show(message) Show toast notifications Toast API
shopify.loading.show() / .hide() Control the admin loading bar Loading API
shopify.resourcePicker() Open product/collection/variant pickers Resource Picker API
shopify.intents.navigate() Launch native Shopify admin workflows Intents API
See the full list at [App Bridge APIs and web methods](https://shopify.dev/docs/api/app-home/apis). ## Client-only rendering Polaris and App Bridge web-component wrappers mount only in the browser. Every native wrapper has the same internal mount guard for auto-imports and direct imports: SSR and the initial hydration render produce a comment, then the real custom element mounts after Vue's `onMounted`. No extra container is inserted, so named slots, table structure, events, and `v-model` retain their normal APIs. `ShApp` and `ShLoadingIndicator` remain layout helpers and do not hide unrelated server-rendered page content. Raw `s-*` tags you write yourself are not guarded. For a useful initial loading state, wrap larger UI regions in Nuxt's `ClientOnly` with a `#fallback` slot. Browser JavaScript and Shopify's Polaris CDN are required for the interactive component UI. # Actions > Action components for buttons, links, and interactive controls. Action components for buttons, links, and interactive controls. # Button > Button with variants and tones. Wraps the Polaris web component. ## Live preview ## Props
Prop Type Default Description
variant 'auto' | 'primary' | 'secondary' | 'tertiary' — Button visual style
tone 'auto' | 'critical' | 'neutral' — Color tone
disabled boolean — Disables the button
loading boolean — Shows a loading spinner
icon PolarisIcon — Icon to display
href string — Makes the button a link
target 'auto' | '_blank' | '_self' | '_parent' | '_top' | string — Link target
download string — Download attribute for link buttons
type 'button' | 'reset' | 'submit' — Button type attribute
accessibilityLabel string — Accessible label
command '--auto' | '--show' | '--hide' | '--toggle' — Command for invoketarget pattern
commandFor string — Target element ID for command
interestFor string — Target element ID for interest
## Events
Event Payload Description
click MouseEvent Emitted on button click
focus FocusEvent Emitted on focus
blur FocusEvent Emitted on blur
## Slots
Slot Description
default Button label
## Polaris Element Renders as ``. See [Polaris Button docs](https://shopify.dev/docs/api/app-home/web-components/actions/button). # ButtonGroup > Group of related buttons. Wraps the Polaris web component. ## Live preview ## Props
Prop Type Default Description
gap 'base' | 'none' — Gap between buttons
accessibilityLabel string — Accessible label
## Slots
Slot Description
default Button children
## Polaris Element Renders as ``. See [Polaris ButtonGroup docs](https://shopify.dev/docs/api/app-home/web-components/actions/button-group). # Clickable > Generic clickable container element. Wraps the Polaris web component. ## Live preview ## Props Includes all [Box](https://shopify.yan.ad/components/layout/box) props plus:
Prop Type Default Description
disabled boolean — Disables the clickable
loading boolean — Shows loading state
href string — Makes the element a link
target 'auto' | '_blank' | '_self' | '_parent' | '_top' | string — Link target
download string — Download attribute
type 'button' | 'reset' | 'submit' — Button type
command '--auto' | '--show' | '--hide' | '--toggle' — Command for invoketarget pattern
commandFor string — Target element ID for command
interestFor string — Target element ID for interest
## Slots
Slot Description
default Clickable content
## Polaris Element Renders as ``. See [Polaris Clickable docs](https://shopify.dev/docs/api/app-home/web-components/actions/clickable). # Link > Styled link element. Wraps the Polaris web component. ## Live preview ## Props
Prop Type Default Description
tone 'auto' | 'critical' | 'neutral' — Color tone
href string — Link destination
target 'auto' | '_blank' | '_self' | '_parent' | '_top' | string — Link target
download string — Download attribute
lang string — Language attribute
accessibilityLabel string — Accessible label
command '--auto' | '--show' | '--hide' | '--toggle' — Command for invoketarget pattern
commandFor string — Target element ID for command
interestFor string — Target element ID for interest
## Slots
Slot Description
default Link content
## Polaris Element Renders as ``. See [Polaris Link docs](https://shopify.dev/docs/api/app-home/web-components/actions/link). # App > Top-level app wrapper and loading components. Top-level app wrapper and loading components. # App Bridge UI > Full-screen UI components powered by Shopify App Bridge. Full-screen UI components powered by Shopify App Bridge. # UiModal > Full-screen modal outside the iframe. Wraps the App Bridge web component. ## Live preview This component integrates with Shopify App Bridge and requires an authenticated Shopify admin host. It cannot run faithfully in a standalone documentation iframe. Use the [authenticated playground](https://github.com/yan-ad/nuxt-shopify/tree/main/playground) to try it with your development store. ## Shopify admin example ```vue ``` `ShUiModal` renders **outside** your app's iframe in the Shopify Admin shell. For an in-iframe modal, use [`ShModal`](https://shopify.yan.ad/components/overlays/modal). ## Props
Prop Type Required Default Description
id string Yes — Unique identifier
variant 'small' | 'base' | 'large' | 'max' No 'base' Modal size
src string No — URL to load in an iframe inside the modal
## Events
Event Payload Description
show Event Emitted when the modal opens
hide Event Emitted when the modal closes
## Slots
Slot Description
default Modal body content
title-bar for modal header
save-bar for modal actions
## App Bridge API
Method Description
shopify.modal.show(id) Shows the modal
shopify.modal.hide(id) Hides the modal
shopify.modal.toggle(id) Toggles modal visibility
## App Bridge Element Renders as ``. See [App Bridge Modal docs](https://shopify.dev/docs/api/app-bridge-library/web-components/ui-modal). # UiNavMenu > Admin sidebar navigation menu. Wraps the App Bridge web component. ## Live preview This component integrates with Shopify App Bridge and requires an authenticated Shopify admin host. It cannot run faithfully in a standalone documentation iframe. Use the [authenticated playground](https://github.com/yan-ad/nuxt-shopify/tree/main/playground) to try it with your development store. ## Shopify admin example ```vue ``` For most apps, use the `navLinks` config option with `` instead of `` directly. Use `` only when you need dynamic or conditional navigation. ## Props This component has no explicit props. All attributes are forwarded to the underlying element. ## Slots
Slot Description
default link elements (use rel="home" for the home link)
## App Bridge Element Renders as ``. See [App Bridge NavMenu docs](https://shopify.dev/docs/api/app-bridge-library/web-components/ui-nav-menu). # UiSaveBar > Contextual save/discard bar. Wraps the App Bridge web component. ## Live preview This component integrates with Shopify App Bridge and requires an authenticated Shopify admin host. It cannot run faithfully in a standalone documentation iframe. Use the [authenticated playground](https://github.com/yan-ad/nuxt-shopify/tree/main/playground) to try it with your development store. ## Shopify admin example ```vue ``` ## Props
Prop Type Required Default Description
id string Yes — Unique identifier
discardConfirmation boolean No — Show confirmation dialog on discard
primaryAction SaveBarAction No — Primary (save) button
secondaryAction SaveBarAction No — Secondary (discard) button
```ts interface SaveBarAction { label: string onClick: () => void } ``` ## Events
Event Payload Description
show Event Emitted when the save bar appears
hide Event Emitted when the save bar is dismissed
## App Bridge API
Method Description
shopify.saveBar.show(id) Shows the save bar
shopify.saveBar.hide(id) Hides the save bar
shopify.saveBar.toggle(id) Toggles save bar visibility
shopify.saveBar.leaveConfirmation() Prompts confirmation before leaving with unsaved changes
## App Bridge Element Renders as ``. See [App Bridge SaveBar docs](https://shopify.dev/docs/api/app-bridge-library/web-components/ui-save-bar). # UiTitleBar > Admin page title bar with action buttons. Wraps the App Bridge web component. ## Live preview This component integrates with Shopify App Bridge and requires an authenticated Shopify admin host. It cannot run faithfully in a standalone documentation iframe. Use the [authenticated playground](https://github.com/yan-ad/nuxt-shopify/tree/main/playground) to try it with your development store. ## Shopify admin example ```vue ``` With a breadcrumb (back button): ```vue ``` ## Props
Prop Type Default Description
title string — Title displayed in the Admin bar
primaryAction TitleBarAction — Primary action button (highlighted)
breadcrumb Omit — Back button / breadcrumb
actions TitleBarAction[] — Additional action buttons
```ts interface TitleBarAction { label: string disabled?: boolean onClick: () => void } ``` ## Notes - Unlike the raw `` web component (which uses `