Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
    • AccordionNext
    • ClickableCard
    • CollapsibleSection
    • HighlightBox
    • LineBarChart
    • ListItemNext
    • Markdown
    • MultiStepNavigation
    • Number
    • PhoneNumberInput
    • PromoCard
    • RatingWithStars
    • ScreenNext
    • SegmentedControl
    • SortableColumnHeader
    • TabListNext
    • TableHeader
    • Tip
    • UniversalEmoji
  • Deprecated
  • Contrib
  • PromoCard

Card that offers something, or promotes a piece of content or a programme, with an illustration and one call to action. Not for telling the member about a system status.

Health
Component health
Source
View on Github
Playground
View in Playground
Accessibility
unknown
Platform
Universal
Contrib Component
PromoCard is a community contributed component. We encourage its usage but it might not give the same level of robustness (accessibility, tests, ...) than core Murray components.
  • Overview
  • Props
Loading...

PromoCard

The PromoCard component is available for universal (web and mobile) applications.

Overview​

See the component source code for API details and examples.

tip
This component is universal, its usage is the same on web and mobile.

PromoCard props

NameTypeDefault ValueDescriptionUsage count
buttonAriaLabelstringundefinedAccessible name of the button, when its visible text is too generic to stand on its own ("Discover", "Learn more"). Defaults to the visible text followed by the card title, so two cards on the same screen never expose two identically named buttons.
buttonText*ReactNodeThe text for the call-to-action button
buttonVariant
8 possibilities"flat""primary""secondary""tertiary""plain""danger""danger-secondary"undefined
secondaryVariant of the call-to-action button
contentPadding
80 possibilitiesundefinednullnumber"unset""inherit""auto"PercentStringUnionableNumber`var(${string})``${number}vw``${number}dvw``${number}lvw``${number}svw``${number}vh``${number}dvh``${number}lvh``${number}svh``calc(${string})``min(${string})``max(${string})`"max-content""min-content""$0""$1""$2""$4""$6""$8""$10""$12""$14""$16""$20""$24""$28""$32""$36""$40""$44""$48""$56""$64""$80""$96""$112""$128""$144""$160""$176""$192""$px0""$px1""$px2""$px4""$px6""$px8""$px10""$px12""$px14""$px16""$px20""$px24""$px28""$px32""$px36""$px40""$px44""$px48""$px56""$px64""$px80""$px96""$px112""$px128""$px144""$px160""$px176""$px192"Variable<any>AnimatedNode
$px16Padding around the content, before `contentPaddingRight` overrides its end side
contentPaddingRight
78 possibilitiesundefinednumber"unset""inherit""auto"PercentStringUnionableNumber`var(${string})``${number}vw``${number}dvw``${number}lvw``${number}svw``${number}vh``${number}dvh``${number}lvh``${number}svh``calc(${string})``min(${string})``max(${string})`"max-content""min-content""$0""$1""$2""$4""$6""$8""$10""$12""$14""$16""$20""$24""$28""$32""$36""$40""$44""$48""$56""$64""$80""$96""$112""$128""$144""$160""$176""$192""$px0""$px1""$px2""$px4""$px6""$px8""$px10""$px12""$px14""$px16""$px20""$px24""$px28""$px32""$px36""$px40""$px44""$px48""$px56""$px64""$px80""$px96""$px112""$px128""$px144""$px160""$px176""$px192"Variable<any>
$px80Custom padding right for the content to avoid overlap with illustration
gradientVariantUniversalGradientundefinedbadger-glowThe gradient variant to use as background
headingLevel124635undefinedChoose the heading level of the title of the card. Left out, the title inherits the level of the surrounding Murray `Section`, which is 1 when no section provides one.
illustration*
14 possibilitiesundefinednullstringnumberbigintfalsetrueReactElement<unknown, stringJSXElementConstructor<any>>Iterable<ReactNode>ReactPortalPromise<AwaitedReactNode>ImageURISourceImageURISource[]
The illustration image source, or an already rendered element (a composed drawing, an SVG) that positions itself absolutely within the card; `illustrationStyle` only applies to sources.
illustrationStyleImageStyleundefinedCustom style for the illustration positioning Typically used to position the image absolutely within the card
onPress*() => voidCallback when the card or button is pressed
subtitle*ReactNodeThe subtitle/description text
subtitleColor
4 possibilitiesundefined`$${string}`Variable<any>OpaqueColorValue
$grey700Color of the subtitle on light gradients; dark gradients always use `$whiteAlpha800`
subtitlePaddingRight
78 possibilitiesundefinednumber"unset""inherit""auto"PercentStringUnionableNumber`var(${string})``${number}vw``${number}dvw``${number}lvw``${number}svw``${number}vh``${number}dvh``${number}lvh``${number}svh``calc(${string})``min(${string})``max(${string})`"max-content""min-content""$0""$1""$2""$4""$6""$8""$10""$12""$14""$16""$20""$24""$28""$32""$36""$40""$44""$48""$56""$64""$80""$96""$112""$128""$144""$160""$176""$192""$px0""$px1""$px2""$px4""$px6""$px8""$px10""$px12""$px14""$px16""$px20""$px24""$px28""$px32""$px36""$px40""$px44""$px48""$px56""$px64""$px80""$px96""$px112""$px128""$px144""$px160""$px176""$px192"Variable<any>
$px24Extra end padding of the subtitle alone, on top of `contentPaddingRight`, to wrap its last line before an illustration that only covers the card's bottom corner
sx
150 possibilitiesundefinedOmit<StackStyle, `$${string}` | PhysicalDirectionProperties> & { [x: `$theme-${string}`]: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; $xs?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltVs?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $vs?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltSm?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $sm?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltMd?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $md?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltLg?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $lg?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltXl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $xl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $ltXxl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; $xxl?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>> & { "$platform-ios"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-android"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-web"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>undefined; "$platform-native"?: AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>> | undefined; }>undefined; "$group-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xs-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltVs-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-vs-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltSm-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-sm-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltMd-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-md-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltLg-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-lg-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-ltXxl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-hover"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-press"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-focus"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-focusVisible"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$group-xxl-focusWithin"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$platform-ios"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$platform-android"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; "$platform-web"?: OmitPhysicalDeep<AddWebOnlyStyleProps<WithThemeShorthandsAndPseudos<StackStyleBase, {}>>>undefined; "$platform-native"?: OmitPhysicalDeep<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>> & WithPseudoProps<WithThemeValues<StackStyleBase> & WithShorthands<WithThemeValues<StackStyleBase>>>>undefined; } & { shadowPreset?: "xs""sm""md""lg""xs-inverted""sm-inverted""md-inverted""lg-inverted"undefined; }
Additional custom styles for the card container
title*ReactNodeThe main title of the card
titleSubtitleSpacing
77 possibilitiesundefined"unset""inherit""auto"PercentStringUnionableNumber`var(${string})``${number}vw``${number}dvw``${number}lvw``${number}svw``${number}vh``${number}dvh``${number}lvh``${number}svh``calc(${string})``min(${string})``max(${string})`"max-content""min-content""$0""$1""$2""$4""$6""$8""$10""$12""$14""$16""$20""$24""$28""$32""$36""$40""$44""$48""$56""$64""$80""$96""$112""$128""$144""$160""$176""$192""$px0""$px1""$px2""$px4""$px6""$px8""$px10""$px12""$px14""$px16""$px20""$px24""$px28""$px32""$px36""$px40""$px44""$px48""$px56""$px64""$px80""$px96""$px112""$px128""$px144""$px160""$px176""$px192"MediaProps<SizeTokens>
Space between the title and the subtitle. Left out, the subtitle sits right under the title.

Style API​

Use sx for one-off adjustments. It accepts these style keys:

alignContentalignItemsalignSelfanimateOnlyanimatePresenceanimationaspectRatiobackdropFilterbackfaceVisibilitybackgroundbackgroundAttachmentbackgroundBlendModebackgroundClipbackgroundColorbackgroundImagebackgroundOriginbackgroundPositionbackgroundRepeatbackgroundSizeblockSizeborderBlockColorborderBlockEndColorborderBlockEndStyleborderBlockEndWidthborderBlockStartColorborderBlockStartStyleborderBlockStartWidthborderBlockStyleborderBlockWidthborderBottomColorborderBottomEndRadiusborderBottomStartRadiusborderBottomWidthborderColorborderCurveborderEndColorborderEndEndRadiusborderEndStartRadiusborderEndWidthborderImageborderInlineColorborderInlineEndColorborderInlineEndStyleborderInlineEndWidthborderInlineStartColorborderInlineStartStyleborderInlineStartWidthborderInlineStyleborderInlineWidthborderRadiusborderStartColorborderStartEndRadiusborderStartStartRadiusborderStartWidthborderStyleborderTopColorborderTopEndRadiusborderTopStartRadiusborderTopWidthborderWidthbottomboxShadowboxSizingcaretColorclipPathcolumnGapcontaincontainerTypecontentcursordirectiondisabledStyledisplayendenterStyleexitStyleexperimental_backgroundImageexperimental_backgroundPositionexperimental_backgroundRepeatexperimental_backgroundSizefilterflexflexBasisflexDirectionflexGrowflexShrinkflexWrapfloatfocusStylefocusVisibleStylefocusWithinStylegapgridColumngridColumnEndgridColumnGapgridColumnStartgridRowgridRowEndgridRowGapgridRowStartgridTemplateAreasgridTemplateColumnsheighthoverStyleinlineSizeinsetinsetBlockinsetBlockEndinsetBlockStartinsetInlineinsetInlineEndinsetInlineStartisolationjustifyContentmarginmarginBlockmarginBlockEndmarginBlockStartmarginBottommarginEndmarginHorizontalmarginInlinemarginInlineEndmarginInlineStartmarginStartmarginTopmarginVerticalmaskmaskBordermaskBorderModemaskBorderOutsetmaskBorderRepeatmaskBorderSlicemaskBorderSourcemaskBorderWidthmaskClipmaskCompositemaskImagemaskModemaskOriginmaskPositionmaskRepeatmaskSizemaskTypematrixmaxBlockSizemaxHeightmaxInlineSizemaxWidthminBlockSizeminHeightminInlineSizeminWidthmixBlendModeobjectFitopacityoutlineColoroutlineOffsetoutlineStyleoutlineWidthoverflowoverflowBlockoverflowInlinepaddingpaddingBlockpaddingBlockEndpaddingBlockStartpaddingBottompaddingEndpaddingHorizontalpaddingInlinepaddingInlineEndpaddingInlineStartpaddingStartpaddingToppaddingVerticalpassThroughperspectivepointerEventspositionpressStylerotaterotateXrotateYrotateZrotationrowGapscalescaleXscaleYscrollbarWidthseparatorshadowColorshadowOffsetshadowOpacityshadowPresetshadowRadiusskewXskewYspacespaceDirectionstarttextEmphasistextWraptoptouchActiontransformtransformMatrixtransformOrigintransformStyletransitiontranslateXtranslateYuserSelectverticalAlignwidthxyzIndex

Each can be overridden per breakpoint with:

$group-focus$group-focusVisible$group-focusWithin$group-hover$group-lg$group-lg-focus$group-lg-focusVisible$group-lg-focusWithin$group-lg-hover$group-lg-press$group-ltLg$group-ltLg-focus$group-ltLg-focusVisible$group-ltLg-focusWithin$group-ltLg-hover$group-ltLg-press$group-ltMd$group-ltMd-focus$group-ltMd-focusVisible$group-ltMd-focusWithin$group-ltMd-hover$group-ltMd-press$group-ltSm$group-ltSm-focus$group-ltSm-focusVisible$group-ltSm-focusWithin$group-ltSm-hover$group-ltSm-press$group-ltVs$group-ltVs-focus$group-ltVs-focusVisible$group-ltVs-focusWithin$group-ltVs-hover$group-ltVs-press$group-ltXl$group-ltXl-focus$group-ltXl-focusVisible$group-ltXl-focusWithin$group-ltXl-hover$group-ltXl-press$group-ltXxl$group-ltXxl-focus$group-ltXxl-focusVisible$group-ltXxl-focusWithin$group-ltXxl-hover$group-ltXxl-press$group-md$group-md-focus$group-md-focusVisible$group-md-focusWithin$group-md-hover$group-md-press$group-press$group-sm$group-sm-focus$group-sm-focusVisible$group-sm-focusWithin$group-sm-hover$group-sm-press$group-vs$group-vs-focus$group-vs-focusVisible$group-vs-focusWithin$group-vs-hover$group-vs-press$group-xl$group-xl-focus$group-xl-focusVisible$group-xl-focusWithin$group-xl-hover$group-xl-press$group-xs$group-xs-focus$group-xs-focusVisible$group-xs-focusWithin$group-xs-hover$group-xs-press$group-xxl$group-xxl-focus$group-xxl-focusVisible$group-xxl-focusWithin$group-xxl-hover$group-xxl-press$lg$ltLg$ltMd$ltSm$ltVs$ltXl$ltXxl$md$platform-android$platform-ios$platform-native$platform-web$sm$vs$xl$xs$xxl
Edit this page
Previous
PhoneNumberInput
Next
RatingWithStars
  • Overview