Return to Sky UI homepage
import { DealCard } from '@sky-uk/ui-core';

Deal Cards show product offerings, and directing users to the respective purchase journey.

Props

DealCard.Bestseller

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.Button

This subcomponent is using the same props as Button component

DealCard.Category

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.FeeWaiver

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.Image

This subcomponent is using the same props as Image component

DealCard.Legals

PropTypeDefaultDescription
contentstringundefinedThe content prop expects either a string or Markdown to be rendered as the description text.

DealCard.OfferTag

This subcomponent is using the same props as Tag component, except $variant and src props

DealCard.Price

This subcomponent is using the same props as Price component, except $inlinePrefix and $inlineSuffix props

DealCard.PriceValue

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.ProductTitle

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.
$headingLevelstringh3The $headingLevel prop allows you to set the heading level of the ProductTitle. This is useful for accessibility and SEO purposes.

DealCard.RTB

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.Saving

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.SpecialOffer

PropTypeDefaultDescription
contentstringundefinedThe content prop requires a string.

DealCard.ThumbnailListItem

This subcomponent is using the same props as Card component, except $aspectRatio, $selected, $theme, disabled, readOnly, and href props

DealCard.Validity

PropTypeDefaultDescription
endTimeDatenull or undefinedThe target date/time at which the countdown ends
showSecondsbooleantrueDefines if the countdown should have seconds or not

Bestseller Deal Card

Deal Card with every optional option turned on.

Multiple Deal Cards

Do not place multiple DealCard components inside any layout method other than Grid, as it may result in incorrect rendering or layout issues. The Grid component ensures proper alignment and spacing of the subcomponents.

Translatable Fields

The Deal Card support translation on the following fields:

TranslationDescription
dealCard.savecontent of the Saving subcomponent
countdown.endsIntext of when the countdown ends
countdown.endsvisually hidden text of when the countdown ends
countdown.daystext of how many days are left
countdown.hourstext of how many hours are left
countdown.minutestext of how many minutes are left
countdown.secondstext of how many seconds are left

For more on translatable fields, view the useTranslation docs here: useTranslation

System Modifiers

The DealCard component also supports the props applied using the following system modifiers: