Skip to main content

Tag

A Tag is used to help label, organize or categorize objects. It is commonly used in Checkout to display the discounts applied to a cart.

string

Icon source

string

A label used for buyers using assistive technologies. When set, any children supplied to this component will not be announced to screen reader users.

() => void

Callback when tag is removed

string

A unique identifier for the component.

Was this section helpful?

Basic Tag

import {render, Tag} from '@shopify/checkout-ui-extensions-react';

render('Checkout::Dynamic::Render', () => <Extension />);

function Extension() {
return <Tag icon="discount">SPRING</Tag>;
}

Preview