Files
web/components/TempDesignSystem/Toasts/toasts.ts
2024-12-12 11:47:44 +01:00

18 lines
417 B
TypeScript

import type { VariantProps } from "class-variance-authority"
import type { toastVariants } from "./variants"
export type ToastsProps = Omit<React.HTMLAttributes<HTMLDivElement>, "color"> &
VariantProps<typeof toastVariants> & {
onClose?: () => void
} & (
| {
children: React.ReactNode
message?: never
}
| {
children?: never
message: React.ReactNode
}
)