Skip to main content
Upgrade to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use Polaris web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the upgrade guide to upgrade your extension and avoid being blocked from updating your extension after October 1st 2026.

List

Lists display a set of related content. Each list item usually begins with a bullet or a number.

Support
Targets (50)

Supported targets


Lists display a set of related content. Each list item usually begins with a bullet or a number.

Anchor to accessibilityLabel
accessibilityLabel
string

A label that describes the purpose or contents of the list. When set, it will be announced to buyers using assistive technologies and will provide them with more context.

string

A unique identifier for the component.

Anchor to marker
marker
Default: 'bullet'

Type of marker to display

Anchor to spacing
spacing
<>
Default: 'base'

Adjust spacing between list items


Basic List

Example

Basic List

import {
reactExtension,
List,
ListItem,
} from '@shopify/ui-extensions-react/checkout';

export default reactExtension(
'purchase.checkout.block.render',
() => <Extension />,
);

function Extension() {
return (
<List>
<ListItem>100% organic cotton</ListItem>
<ListItem>Made in Canada</ListItem>
<ListItem>Machine washable</ListItem>
</List>
);
}
import {extension, List, ListItem} from '@shopify/ui-extensions/checkout';

export default extension('purchase.checkout.block.render', (root) => {
const list = root.createComponent(List, undefined, [
root.createComponent(ListItem, undefined, '100% organic cotton'),
root.createComponent(ListItem, undefined, 'Made in Canada'),
root.createComponent(ListItem, undefined, 'Machine washable'),
]);

root.appendChild(list);
});

  • Use lists to break up chunks of related content to make the information easier for buyers to scan.

  • Phrase list items consistently. Try to start each item with a noun or a verb and be consistent with each item.

  • Use bullets for a text-only list of related items that don’t need to be in a specific order.

  • Use numbers for a text-only list of related items when you need to communicate order, priority, or sequence.

  • Don’t use a marker when only the semantic value of a list matters, such as with a list of links.



Was this page helpful?