PPolaris ComponentsConnect an agent

List

Groups related items as a bulleted or numbered list, for short sets of facts, steps or requirements inside a page.

Preview

Code

Example.jsx
import { Card, BlockStack, Text, List, Divider } from '@shopify/polaris';

const PLAN_FEATURES = [
  'Unlimited discount rules',
  'Cart and checkout upsells',
  'Abandoned cart emails',
  'Priority support, replies within 4 hours',
];

const SETUP_STEPS = [
  'Enable the app embed in your theme editor.',
  'Pick the products the offer applies to.',
  'Choose where the widget appears on the product page.',
  'Publish the offer and check it on your storefront.',
];

export const Example = () => (
  <Card>
    <BlockStack gap="400">
      <BlockStack gap="200">
        <Text as="h2" variant="headingMd">
          What the Growth plan includes
        </Text>
        <List type="bullet">
          {PLAN_FEATURES.map((feature) => (
            <List.Item key={feature}>{feature}</List.Item>
          ))}
        </List>
      </BlockStack>

      <Divider />

      <BlockStack gap="200">
        <Text as="h2" variant="headingMd">
          Set up your first offer
        </Text>
        <List type="number">
          {SETUP_STEPS.map((step) => (
            <List.Item key={step}>{step}</List.Item>
          ))}
        </List>
      </BlockStack>
    </BlockStack>
  </Card>
);