Files
web/components/TempDesignSystem/Toasts/toasts.ts
2024-11-29 15:55:30 +01:00

18 lines
412 B
TypeScript

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