---
title: "Components"
description: "Shopify Polaris web components wrapped for Nuxt with Vue bindings."
canonical_url: "https://shopify.yan.ad/components"
---
# 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).

<card-group>
<card icon="i-lucide-layout-dashboard" title="Layout" to="https://shopify.yan.ad/components/layout/page">

Page, Box, Stack, Grid, Section, and Divider — structure your app pages.

</card>

<card icon="i-lucide-mouse-pointer-click" title="Actions" to="https://shopify.yan.ad/components/actions/button">

Button, ButtonGroup, Clickable, and Link — trigger actions and navigate.

</card>

<card icon="i-lucide-text-cursor-input" title="Forms" to="https://shopify.yan.ad/components/forms/text-field">

TextField, Select, Checkbox, Choice, and more — collect user input.

</card>

<card icon="i-lucide-message-circle" title="Feedback" to="https://shopify.yan.ad/components/feedback/banner">

Banner, Badge, Spinner, Tooltip, EmptyState, and Progress — communicate status and information.

</card>

<card icon="i-lucide-compass" title="Navigation" to="https://shopify.yan.ad/components/navigation/app-nav">

AppNav, Menu, Option, OptionGroup, and Popover — guide users through your app.

</card>

<card icon="i-lucide-table" title="Data" to="https://shopify.yan.ad/components/data/table">

Table, TableHeader, TableBody, TableRow, and TableCell — display structured data.

</card>

<card icon="i-lucide-type" title="Content" to="https://shopify.yan.ad/components/content/text">

Text, Number, Heading, Icon, Image, Thumbnail, Avatar, Chip, and List — render content.

</card>

<card icon="i-lucide-layers" title="Overlays" to="https://shopify.yan.ad/components/overlays/modal">

Modal and QueryContainer — display content above the page.

</card>

<card icon="i-lucide-app-window" title="App" to="https://shopify.yan.ad/components/app/app">

App wrapper and LoadingIndicator — top-level app components.

</card>

<card icon="i-lucide-external-link" title="App Bridge UI" to="https://shopify.yan.ad/components/app-bridge-ui/ui-modal">

UiModal, UiTitleBar, UiSaveBar, and UiNavMenu — full-screen App Bridge overlays.

</card>
</card-group>

## 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' // <ShopifyButton>, <ShopifyApp>, etc.
  }
})
```

The examples below use the default `Sh` prefix.

## Basic Example

```vue
<template>
  <ShPage heading="Products">
    <ShStack gap="base">
      <ShButton variant="primary" @click="save">Save</ShButton>
      <ShButton @click="cancel">Cancel</ShButton>
    </ShStack>

    <ShBanner heading="Welcome" tone="info" dismissible>
      Start by adding your first product.
    </ShBanner>

    <ShTextField
      v-model="title"
      label="Product title"
      placeholder="Enter product title"
    />

    <ShSelect
      v-model="status"
      label="Status"
    >
      <ShOption value="active">Active</ShOption>
      <ShOption value="draft">Draft</ShOption>
    </ShSelect>
  </ShPage>
</template>
```

## App Components

### `<ShApp>`

Wrap your app pages with `<ShApp>` 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]
<template>
  <ShApp>
    <slot />
  </ShApp>
</template>
```

### `<ShLoadingIndicator>`

Bridges the Nuxt loading indicator with the Shopify Admin loading bar. See [ShLoadingIndicator reference](https://shopify.yan.ad/components/app/loading-indicator).

```vue
<template>
  <ShLoadingIndicator>
    <ShPage heading="Products">
      <!-- content -->
    </ShPage>
  </ShLoadingIndicator>
</template>
```

## Available Components

Each Polaris component maps to its web component counterpart (e.g., `<ShButton>` → `<s-button>`). Browse the full reference with props, events, and slots:

<table>
<thead>
  <tr>
    <th>
      Category
    </th>
    
    <th>
      Components
    </th>
    
    <th>
      Reference
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Layout
      </strong>
    </td>
    
    <td>
      <code>
        ShPage
      </code>
      
      , <code>
        ShBox
      </code>
      
      , <code>
        ShStack
      </code>
      
      , <code>
        ShGrid
      </code>
      
      , <code>
        ShGridItem
      </code>
      
      , <code>
        ShSection
      </code>
      
      , <code>
        ShDivider
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/layout">
        Layout
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Actions
      </strong>
    </td>
    
    <td>
      <code>
        ShButton
      </code>
      
      , <code>
        ShButtonGroup
      </code>
      
      , <code>
        ShClickable
      </code>
      
      , <code>
        ShLink
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/actions">
        Actions
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Forms
      </strong>
    </td>
    
    <td>
      <code>
        ShTextField
      </code>
      
      , <code>
        ShNumberField
      </code>
      
      , <code>
        ShEmailField
      </code>
      
      , <code>
        ShPasswordField
      </code>
      
      , <code>
        ShUrlField
      </code>
      
      , <code>
        ShMoneyField
      </code>
      
      , <code>
        ShColorField
      </code>
      
      , <code>
        ShDateField
      </code>
      
      , <code>
        ShTextArea
      </code>
      
      , <code>
        ShSelect
      </code>
      
      , <code>
        ShCheckbox
      </code>
      
      , <code>
        ShSwitch
      </code>
      
      , <code>
        ShChoiceList
      </code>
      
      , <code>
        ShChoice
      </code>
      
      , <code>
        ShSearchField
      </code>
      
      , <code>
        ShDropZone
      </code>
      
      , <code>
        ShColorPicker
      </code>
      
      , <code>
        ShDatePicker
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/forms">
        Forms
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Feedback
      </strong>
    </td>
    
    <td>
      <code>
        ShBanner
      </code>
      
      , <code>
        ShBadge
      </code>
      
      , <code>
        ShSpinner
      </code>
      
      , <code>
        ShTooltip
      </code>
      
      , <code>
        ShEmptyState
      </code>
      
      , <code>
        ShProgress
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/feedback">
        Feedback
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Navigation
      </strong>
    </td>
    
    <td>
      <code>
        ShAppNav
      </code>
      
      , <code>
        ShMenu
      </code>
      
      , <code>
        ShOption
      </code>
      
      , <code>
        ShOptionGroup
      </code>
      
      , <code>
        ShPopover
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/navigation">
        Navigation
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Data
      </strong>
    </td>
    
    <td>
      <code>
        ShTable
      </code>
      
      , <code>
        ShTableHeader
      </code>
      
      , <code>
        ShTableHeaderRow
      </code>
      
      , <code>
        ShTableBody
      </code>
      
      , <code>
        ShTableRow
      </code>
      
      , <code>
        ShTableCell
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/data">
        Data
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Content
      </strong>
    </td>
    
    <td>
      <code>
        ShText
      </code>
      
      , <code>
        ShNumber
      </code>
      
      , <code>
        ShHeading
      </code>
      
      , <code>
        ShParagraph
      </code>
      
      , <code>
        ShIcon
      </code>
      
      , <code>
        ShImage
      </code>
      
      , <code>
        ShThumbnail
      </code>
      
      , <code>
        ShAvatar
      </code>
      
      , <code>
        ShChip
      </code>
      
      , <code>
        ShClickableChip
      </code>
      
      , <code>
        ShListItem
      </code>
      
      , <code>
        ShOrderedList
      </code>
      
      , <code>
        ShUnorderedList
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/content">
        Content
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Overlays
      </strong>
    </td>
    
    <td>
      <code>
        ShModal
      </code>
      
      , <code>
        ShQueryContainer
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/overlays">
        Overlays
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        App Bridge UI
      </strong>
    </td>
    
    <td>
      <code>
        ShUiModal
      </code>
      
      , <code>
        ShUiTitleBar
      </code>
      
      , <code>
        ShUiSaveBar
      </code>
      
      , <code>
        ShUiNavMenu
      </code>
    </td>
    
    <td>
      <a href="https://shopify.yan.ad/components/app-bridge-ui">
        App Bridge UI
      </a>
    </td>
  </tr>
</tbody>
</table>

## Polaris Modal (`ShModal`)

`ShModal` wraps the [Polaris `<s-modal>`](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
<template>
  <ShButton command-for="my-modal" command="--show">Open</ShButton>

  <ShModal id="my-modal" heading="Confirm action">
    <ShParagraph>Are you sure?</ShParagraph>

    <ShButton slot="secondary-actions" command-for="my-modal" command="--hide">
      Cancel
    </ShButton>
    <ShButton
      slot="primary-action"
      variant="primary"
      command-for="my-modal"
      command="--hide"
    >
      Confirm
    </ShButton>
  </ShModal>
</template>
```

<tip>

You can also control `<s-modal>` programmatically: `shopify.modal.show('my-modal')`, `shopify.modal.hide('my-modal')`, `shopify.modal.toggle('my-modal')`.

</tip>

<warning>

`ShModal` is **not** the same as the App Bridge `<ui-modal>` which renders **outside** the iframe. If you need the App Bridge modal, use [`<ShUiModal>`](https://shopify.yan.ad/components/app-bridge-ui/ui-modal).

</warning>

## 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*`)

<table>
<thead>
  <tr>
    <th>
      
    </th>
    
    <th>
      Polaris (<code>
        Sh*
      </code>
      
      )
    </th>
    
    <th>
      App Bridge (<code>
        ShUi*
      </code>
      
      )
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        HTML elements
      </strong>
    </td>
    
    <td>
      <code>
        <s-button>
      </code>
      
      , <code>
        <s-modal>
      </code>
      
      , etc.
    </td>
    
    <td>
      <code>
        <ui-modal>
      </code>
      
      , <code>
        <ui-title-bar>
      </code>
      
      , etc.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Renders in
      </strong>
    </td>
    
    <td>
      Your app's iframe
    </td>
    
    <td>
      Shopify Admin (outside the iframe)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Use for
      </strong>
    </td>
    
    <td>
      In-app UI: forms, tables, buttons, layout
    </td>
    
    <td>
      Admin-level chrome: page title, modals overlaying the admin, save bar, navigation
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Controlled via
      </strong>
    </td>
    
    <td>
      Props, slots, <code>
        command
      </code>
      
      /<code>
        commandFor
      </code>
    </td>
    
    <td>
      <code>
        useAppBridge()
      </code>
      
       API (<code>
        shopify.modal.show(id)
      </code>
      
      , etc.)
    </td>
  </tr>
</tbody>
</table>

For detailed props, events, and usage examples, see the individual component pages:

- [`<ShUiModal>`](https://shopify.yan.ad/components/app-bridge-ui/ui-modal) — Full-screen modal outside the iframe
- [`<ShUiTitleBar>`](https://shopify.yan.ad/components/app-bridge-ui/ui-title-bar) — Admin page title bar with action buttons
- [`<ShUiSaveBar>`](https://shopify.yan.ad/components/app-bridge-ui/ui-save-bar) — Contextual save/discard bar
- [`<ShUiNavMenu>`](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()`):

<table>
<thead>
  <tr>
    <th>
      API
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Docs
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        shopify.modal
      </code>
    </td>
    
    <td>
      Show, hide, and toggle modals by ID
    </td>
    
    <td>
      <a href="https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/modal-api" rel="nofollow">
        Modal API
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        shopify.saveBar
      </code>
    </td>
    
    <td>
      Show, hide, toggle save bars and prompt leave confirmation
    </td>
    
    <td>
      <a href="https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/save-bar-api" rel="nofollow">
        Save Bar API
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        shopify.toast.show(message)
      </code>
    </td>
    
    <td>
      Show toast notifications
    </td>
    
    <td>
      <a href="https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/toast-api" rel="nofollow">
        Toast API
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        shopify.loading.show()
      </code>
      
       / <code>
        .hide()
      </code>
    </td>
    
    <td>
      Control the admin loading bar
    </td>
    
    <td>
      <a href="https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/loading-api" rel="nofollow">
        Loading API
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        shopify.resourcePicker()
      </code>
    </td>
    
    <td>
      Open product/collection/variant pickers
    </td>
    
    <td>
      <a href="https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/resource-picker-api" rel="nofollow">
        Resource Picker API
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        shopify.intents.navigate()
      </code>
    </td>
    
    <td>
      Launch native Shopify admin workflows
    </td>
    
    <td>
      <a href="https://shopify.dev/docs/api/app-home/apis/user-interface-and-interactions/intents-api" rel="nofollow">
        Intents API
      </a>
    </td>
  </tr>
</tbody>
</table>

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.


## Sitemap

See the full [sitemap](https://shopify.yan.ad/sitemap.md) for all pages.
