Files
web/apps/scandic-web/components/TempDesignSystem/Card/card.ts
Matilda Landström e5836c9e65 Merged in fix/SW-2817-activity-card (pull request #2160)
Fix/SW-2816: activity card span full width

* fix(SW-2816): image span full width

* fix(SW-2817): improve image blurriness


Approved-by: Erik Tiekstra
2025-05-21 06:27:59 +00:00

32 lines
882 B
TypeScript

import type { VariantProps } from "class-variance-authority"
import type { ApiImage } from "@/types/components/image"
import type { ImageVaultAsset } from "@/types/components/imageVault"
import type { cardVariants } from "./variants"
export interface CardProps
extends React.HTMLAttributes<HTMLDivElement>,
VariantProps<typeof cardVariants> {
primaryButton?: {
href: string
title: string
openInNewTab?: boolean
isExternal?: boolean
scrollOnClick?: boolean
} | null
secondaryButton?: {
href: string
title: string
openInNewTab?: boolean
isExternal?: boolean
scrollOnClick?: boolean
} | null
scriptedTopTitle?: string | null
heading?: string | null
bodyText?: string | null
imageGradient?: boolean
onPrimaryButtonClick?: () => void
onSecondaryButtonClick?: () => void
backgroundImage?: ImageVaultAsset | ApiImage
}