Callout card

Callout cards are used to encourage merchants to take an action related to a new feature or opportunity. They are most commonly displayed in the sales channels section of Shopify.

Use to let merchants know about a feature or opportunity where there is a clear, single action they need to take to move to the next step.

import {CalloutCard} from '@shopify/polaris';
import React from 'react';

function Example() {
  return (
    <CalloutCard
      title="Customize the style of your checkout"
      illustration="https://cdn.shopify.com/s/assets/admin/checkout/settings-customizecart-705f57c725ac05be5a34ec20c05b94298cb8afd10aac7bd9c7ad02030f48cfa0.svg"
      primaryAction={{
        content: 'Customize checkout',
        url: 'https://www.shopify.com',
      }}
    >
      <p>Upload your store’s logo, change colors and fonts, and more.</p>
    </CalloutCard>
  );
}

Props

Want to help make this feature better? Please share your feedback.

interface CalloutCardProps
children?React.ReactNode

The content to display inside the callout card.

titleReact.ReactNode

The title of the card.

illustrationstring

URL to the card illustration.

primaryAction

Primary action for the card.

secondaryAction?

Secondary action for the card.

onDismiss?() => void

Callback when banner is dismissed.

Best practices

Callout cards should:

  • Clearly articulate the benefit of the feature and what it does
  • Provide merchants with a clear call to action
  • Be targeted to merchants who will most benefit from the feature
  • Be dismissable so merchants can get rid of cards about features they’re not interested in
  • Use an illustration that helps to communicate the subject or merchant benefit

Content guidelines

Title

Callout card titles should follow the content guidelines for headings and subheadings.

Body content

Body content should be:

  • Actionable: start sentences with imperative verbs when telling merchants what actions are available to them (especially something new). Don’t use permissive language like “you can”.

Do

Get performance data for all your sales channels.

Don’t

Now you can get performance data for all your sales channels.

  • Structured for merchant success: always put the most critical information first
  • Clear: use the verb “need” to help merchants understand when they’re required to do something

Do

To buy a shipping label, you need to enter the total weight of your shipment, including packaging.

Don’t

To buy a shipping label, you must enter the total weight of your shipment, including packaging.

Call to action

Buttons should be:

Clear and predictable: merchants should be able to anticipate what will happen when they click a button. Never deceive merchants by mislabeling a button.

Do

Buy shipping label

Don’t

Buy

  • Action-led: buttons should always lead with a strong verb that encourages action. To provide enough context to merchants use the {verb}+{noun} format on buttons except in the case of common actions like Save, Close, Cancel, or OK.

Do

View shipping settings

Don’t

View your settings

  • Scannable: avoid unnecessary words and articles such as the, an, or a.

Do

Add menu item

Don’t

Add a menu item



Accessibility

The required title prop gives the callout card a level 2 heading (<h2>). This helps with readability and provides structure to screen reader users.

Illustrations included in callout cards are implemented as decorative images with empty alt attributes (alt="" ) so that they’re skipped by screen readers.

Use actionable language to ensure that the purpose of the callout card is clear to all merchants, including those with issues related to reading and language.