18 lines
412 B
TypeScript
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
|
|
}
|
|
)
|