feat:(SW-219): content card component WIP
This commit is contained in:
26
types/components/contentCard.ts
Normal file
26
types/components/contentCard.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user