feat:(SW-219): content card component WIP

This commit is contained in:
Chuma McPhoy
2024-09-11 11:31:42 +02:00
parent 6cfc79f8b5
commit 3e08b3357b
7 changed files with 215 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
import { VariantProps } from "class-variance-authority"
import { contentCardVariants } from "@/components/TempDesignSystem/ContentCard/variants"
export interface CTA {
label: string
href: string
openInNewTab?: boolean
}
export interface SidePeekCTA {
label: string
// onClick: () => void
onClick: boolean
}
export interface ContentCardProps
extends VariantProps<typeof contentCardVariants> {
title: string
description: string
primaryCTA?: CTA
secondaryCTA?: CTA
sidePeekCTA?: SidePeekCTA
backgroundImage?: string
className?: string
}