ui
ui copied to clipboard
toast componets does not apper when i try to use it
hi there, i use toast from your components with astro and when i try to call it inside a react .tsx file like these i got nothing
when i try to submit the form it dose not show up ,
i try
and it still not working .
i hope you to find a solution.
thanks
@mohamed-abd-elkahlk Did you add the Toaster component in main file?
import { Toaster } from "@/components/ui/toaster"
export default function RootLayout({ children }) {
return (
<html lang="en">
<head />
<body>
<main>{children}</main>
<Toaster />
</body>
</html>
)
}
@sarkartanmay393 yes in the main Layout
i solved this issue by adding clinet:idle to toaster component in main file