-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"DialogTrigger must be used within Dialog" - Error in Astro #2249
Comments
you need to add |
okay thanks, where exactly am i to add that? |
https://docs.astro.build/en/concepts/islands/#creating-an-island |
Adding the client directive Still it would be nice to be able to use these interactable components as intended in Astro. |
this is what ended up working for me, thanks |
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you. |
|
I added |
this is great work for me wrong import must be corrected import sheet from ../ui/sheet not from lucide-react |
I keep getting this error when trying to use components like Dialog and Sheet.
As expected, i used
npx shadcn-ui@latest add dialog
to initialize it, and then when i try to use it, the error keeps popping up:My usage:
Here is a screenshot of the error message
My package.json
i also even get similar error when using the Accordion component
Accordion must be used within Accordion
The text was updated successfully, but these errors were encountered: