Files
web/types/components/contentCard.ts
2024-09-16 09:13:00 +02:00

27 lines
566 B
TypeScript

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
}