---
title: Migrate Tag from Polaris React
description: Learn how to migrate Polaris React Tag to Polaris web components.
source_url:
  html: 'https://shopify.dev/docs/apps/build/app-home/migrate-from-polaris-react/tag'
  md: >-
    https://shopify.dev/docs/apps/build/app-home/migrate-from-polaris-react/tag.md
api_name: app-home
---

# Migrate Tag from Polaris React

Use `s-chip` for static compact information and `s-clickable-chip` when it performs an action. Use a different control if the old tag represented a removable form value.

***

## Choose the destination

| Polaris React | Polaris web components | Migration type |
| - | - | - |
| `Tag` | [`s-chip`](https://shopify.dev/docs/api/app-home/web-components/typography-and-content/chip) or [`s-clickable-chip`](https://shopify.dev/docs/api/app-home/web-components/actions/clickable-chip) | Direct |

***

## Map tag properties

| Polaris React | Polaris web components | Migration notes |
| - | - | - |
| `children` | Chip text content | Keep the label short and meaningful without surrounding context. |
| `onRemove` | `s-clickable-chip removable` and the `remove` event (`onRemove` in JSX) | Update the same app-owned collection that renders the chip. |
| `disabled`, navigation, and `accessibilityLabel` | `disabled`, `href`, and `accessibilityLabel` | Include the value in labels such as "Remove Summer collection". |

***

## Migrate the call site

1. Inventory every `Tag` call site and record the content, state, events, and accessibility behavior it uses.

2. Open the linked Polaris web component reference and map only documented properties, slots, and events.

3. Move unsupported responsibilities into adjacent content or app state instead of passing old props through.

4. After verification, remove the `Tag` import and any Polaris-only state, wrappers, or helpers that no longer have a caller.

***

## Preserve these behaviors

* Accessible names, semantics, and keyboard behavior.
* Visible content plus disabled, loading, selected, or error state that affects the task.
* Click, change, submit, and navigation behavior used by app logic.

***

## Test and remove Polaris React

Test every migrated `Tag` state used by the app. For interactive destinations, verify keyboard operation, focus, and accessible naming. For content destinations, verify document structure and alternative text where applicable. Compare behavior rather than pixel-for-pixel styling.

Don't remove `@shopify/polaris` while another component still imports it. Once all call sites are migrated, remove the package and its provider-level setup, then run the app's full test suite.

***

## Migration example

## Migrating Tag

##### Polaris web components

```tsx
export function TagMigrationExample() {
  return (
    <><s-clickable-chip removable>Wholesale</s-clickable-chip></>
  );
}
```

##### Polaris React

```tsx
import {Tag} from '@shopify/polaris';


export function TagMigrationExample() {

  return (
    <Tag onRemove={() => {}}>Wholesale</Tag>
  );
}
```

***
