Deal Card - React
import { DealCard } from '@sky-uk/ui-core';
Deal Cards show product offerings, and directing users to the respective purchase journey.
Props
DealCard.Bestseller
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
DealCard.Button
This subcomponent is using the same props as Button component
DealCard.Category
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
DealCard.FeeWaiver
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
DealCard.Image
This subcomponent is using the same props as Image component
DealCard.Legals
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop expects either a string or Markdown to be rendered as the description text. |
DealCard.OfferTag
DealCard.Price
This subcomponent is using the same props as Price component, except
$inlinePrefix
and $inlineSuffix
propsDealCard.PriceValue
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
DealCard.ProductTitle
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
$headingLevel | string | h3 | The $headingLevel prop allows you to set the heading level of the ProductTitle . This is useful for accessibility and SEO purposes. |
DealCard.RTB
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
DealCard.Saving
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The content prop requires a string . |
DealCard.SpecialOffer
Prop | Type | Default | Description |
---|---|---|---|
content | string | undefined | The 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
propsDealCard.Validity
Prop | Type | Default | Description |
---|---|---|---|
endTime | Date | null or undefined | The target date/time at which the countdown ends |
showSeconds | boolean | true | Defines 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:
Translation | Description |
---|---|
dealCard.save | content of the Saving subcomponent |
countdown.endsIn | text of when the countdown ends |
countdown.ends | visually hidden text of when the countdown ends |
countdown.days | text of how many days are left |
countdown.hours | text of how many hours are left |
countdown.minutes | text of how many minutes are left |
countdown.seconds | text 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: