fix: refactor buttons on card grid

This commit is contained in:
Christel Westerberg
2024-05-21 14:35:26 +02:00
parent 1bc8753649
commit ad343aa666
6 changed files with 175 additions and 48 deletions
+20 -5
View File
@@ -1,9 +1,24 @@
export type CardProps = {
link?: {
import { cardVariants } from "./variants"
import type { VariantProps } from "class-variance-authority"
export interface CardProps
extends React.HTMLAttributes<HTMLDivElement>,
VariantProps<typeof cardVariants> {
primaryButton?: {
href: string
title: string
openInNewTab?: boolean
isExternal: boolean
}
title?: string | null
subtitle?: string | null
openInNewTab?: boolean
secondaryButton?: {
href: string
title: string
openInNewTab?: boolean
isExternal: boolean
}
scriptedTopTitle?: string | null
heading?: string | null
bodyText?: string | null
backgroundImage?: { url: string }
}