Files
web/apps/scandic-web/components/TempDesignSystem/Alert/alert.ts
Matilda Landström 7891ae3ae6 Merged in feat/SW-3232-site-config-alerts (pull request #2671)
feat(SW-3232): update alert schema

* feat(SW-3232): update alert schema


Approved-by: Erik Tiekstra
2025-08-20 09:18:00 +00:00

29 lines
822 B
TypeScript

import type { AlertTypeEnum } from "@scandic-hotels/trpc/types/alert"
import type { SidepeekContent } from "@scandic-hotels/trpc/types/siteConfig"
import type { VariantProps } from "class-variance-authority"
import type { AriaRole } from "react"
import type { alertVariants } from "./variants"
export interface AlertProps extends VariantProps<typeof alertVariants> {
className?: string
type: AlertTypeEnum
heading?: string | null
text?: string | null
phoneContact?: {
displayText: string
phoneNumber?: string
footnote?: string | null
} | null
sidepeekContent?: SidepeekContent | null
sidepeekCtaText?: string | null
link?: {
url: string
title: string
keepSearchParams?: boolean
} | null
close?: () => void
ariaRole?: AriaRole
ariaLive?: "off" | "assertive" | "polite"
}