feat(SW-219): add support for content card in cards grid in content pages
This commit is contained in:
@@ -1,27 +1,21 @@
|
||||
import { VariantProps } from "class-variance-authority"
|
||||
|
||||
import { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import { contentCardVariants } from "@/components/TempDesignSystem/ContentCard/variants"
|
||||
|
||||
export interface CTA {
|
||||
label: string
|
||||
href: string
|
||||
openInNewTab?: boolean
|
||||
}
|
||||
import { ImageVaultAsset } from "@/types/components/imageVault"
|
||||
|
||||
export interface SidePeekCTA {
|
||||
label: string
|
||||
// onClick: () => void
|
||||
// TODO: change back to function.
|
||||
onClick: boolean
|
||||
export interface SidePeekButton {
|
||||
title: string
|
||||
}
|
||||
|
||||
export interface ContentCardProps
|
||||
extends VariantProps<typeof contentCardVariants> {
|
||||
title: string
|
||||
description: string
|
||||
primaryCTA?: CTA
|
||||
secondaryCTA?: CTA
|
||||
sidePeekCTA?: SidePeekCTA
|
||||
backgroundImage?: string
|
||||
primaryButton?: CardProps["primaryButton"]
|
||||
secondaryButton?: CardProps["secondaryButton"]
|
||||
sidePeekButton?: SidePeekButton
|
||||
backgroundImage?: ImageVaultAsset
|
||||
className?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user