feat(SW-498): Added Alert component

This commit is contained in:
Erik Tiekstra
2024-10-16 15:18:43 +02:00
parent bcee55c359
commit e41bf86993
6 changed files with 229 additions and 0 deletions
@@ -0,0 +1,16 @@
import { alertVariants } from "./variants"
import type { VariantProps } from "class-variance-authority"
import { AlertTypeEnum } from "@/types/enums/alert"
import type { SidepeekContent } from "@/types/trpc/routers/contentstack/siteConfig"
export interface AlertProps extends VariantProps<typeof alertVariants> {
className?: string
type: AlertTypeEnum
closeable?: boolean
heading?: string
text: string
sidepeekContent?: SidepeekContent | null
sidePeekCtaText?: string | null
}