<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5HGSQD2L" height="0" width="0" style="display:none;visibility:hidden" title="GTM"></iframe>

Callout

A status label that calls attention to a product or service.
Warning:

⚠️ Some props/prop values deprecated in SWAN v3.3
Refer to the information on props/prop values provided further down this page. Find more information and migration documentation in the Deprecation roadmap.

Use Callout...

  • To call attention to a product or service.

Don't use Callout...

The preview has been updated.

Skin

Info

Use skin="info" to display a standard message. This is the default skin.

The preview has been updated.

Accent

Use skin="accent" to display a standout or brand callout.

The preview has been updated.

Promo

Use skin="promo" to display promotional content such as a discount.

The preview has been updated.

Error

Use skin="error" to display an error status or issues, such as an item being out of stock.

The preview has been updated.

Warning

Use skin="warning" to display a warning status or message.

The preview has been updated.

Success

Use skin="success" to display a positive or success message.

The preview has been updated.

Holiday

Use skin="holiday" only for holiday campaigns.

The preview has been updated.

Help

Use skin="help" to display a CARE-related message.

The preview has been updated.

Skin (deprecated)

Standard

Warning:

⚠️ skin="standard" is deprecated in SWAN v3.3
Use the skin="info" instead, which aligns with new semantic roles on SWAN components.

The preview has been updated.

Announcement

Warning:

⚠️ skin='announcement' deprecated in SWAN v3.3

Use skin='accent' instead, which aligns with new semantic roles on SWAN components.

Use skin="announcement" to display an announcement.

The preview has been updated.

New

Warning:

⚠️ skin='new' deprecated in SWAN v3.3

Use skin='accent' instead, which aligns with new semantic roles on SWAN components.

Use skin="new" to promote a new product or service launched within the last 6 months.

The preview has been updated.

Discount

Warning:

⚠️ skin='discount' deprecated in SWAN v3.3

Use skin='promo' instead, which aligns with new semantic roles on SWAN components.

Use skin="discount" to promote a discounted product or service.

The preview has been updated.

Foil

Warning:

⚠️ skin='foil' deprecated in SWAN v3.3

No direct replacement, use a different skin that will suit your needs.

Use skin="foil" to promote foil printing on a product.

The preview has been updated.

Variant

Overlay

Warning:

⚠️ variant="overlay" is deprecated in SWAN v3.3
Use the variant="standard" instead, which aligns with new semantic roles on SWAN components.

Use variant="overlay" to add a white background to the Callout. This is useful when the callout is positioned over an image to ensure the label is legible.

The preview has been updated.

Inverse

Use variant="inverse" to inverse the colours in the Callout. This is useful when you want to make the callout more noticeable on the page.

The preview has been updated.

Size

Warning:

⚠️ size is deprecated in SWAN v3.3

The component now automatically handles sizing based on the selected mode(standardMode/compactMode). Please update your implementation to rely on the new mode-based sizing.

Mini

Use size="mini" for a smaller Callout.

The preview has been updated.

Border

Warning:

⚠️ border is deprecated in SWAN v3.3 No direct replacement for better semantic roles on SWAN components.

Use border="none" for a borderless Callout.

The preview has been updated.

Purpose

  • Use the skin that matches the purpose of the messaging, not the visual style.
  • For example, don’t use the holiday skin to communicate an error status because it is red. Use the error skin.
  • Don’t use the capitalized new skin to communicate anything other then a new product or service.
  • Only use the holiday skin for seasonal Holiday campaigns.

Content

  • Use clear, concise labels no more the 14 characters in length.
    If there is not enough room to display the entire component, the label will truncate into ellipses.
  • Use new Callouts for products launched within the last 6 months.
  • Use Callouts with a "Top Rated" label only for products with a rating of 3.5 stars or more.
  • Use Callouts with a "Up to NN% Off" only for product "Red" sales.

Placement

  • When used on Standard Tiles, Callouts are usually positioned in the top left corner.
  • Position Callouts in a consistent location on related UI elements.

Props

Callout
This component is implemented using the <span /> as the root element. You can utilize the native attributes supported by <span /> tag. The ref is directly assigned to the root element, allowing you to access and manipulate it as needed.
See core props for additional props that can be applied to this component.
proptyperequireddescriptiondefault
size"standard" | "mini" | nullfalse
⚠️ Deprecated - This is deprecated without a replacement.
The size variation
standard
border"standard" | "none" | nullfalse
⚠️ Deprecated - The 'border' prop is no longer being supported.
standard
skin"standard" | "info" | "accent" | "success" | "warning" | "error" | "help" | "promo" | "holiday" | "foil" | "new" | "announcement" | "discount" | nullfalse
The visual style of the Callout The 'foil', 'new' and 'announcement' skins are deprecated; use 'accent' instead The 'discount' skin is deprecated; use 'promo' instead The 'standard' skin is deprecated; use 'info' instead
info
variant"standard" | "overlay" | "inverse" | nullfalse
The type of callout 'overlay' variant is deprecated
standard
Was this page useful?

Thanks for your feedback!

Feel free to include your name if you wish to have a follow up conversation.


Published: Jan 7, 2022Last updated: Sep 3, 2024