Closed moisreis closed 2 days ago
Yes. It works with Astro. I'll see if I can find an example for you.
+1
I was playing with getting a very minimal example up just to get it to build. Hope this will get you started.
https://github.com/talves/astro-shadcn-ui-template/tree/main
Note: Understand that it has to be a static build using vite.ssr.noExternal
for radix-ui
. The astro.config.mjs
config reflects this setup.
It works on astro through the react integration. So it actually works on react under astro but I don't think that it works on plain astro because the components require react. @shadcn what do you think? Do you plan on releasing a core version?
This is a solution based on Radix UI which has a dependency on React. It's not meant to be used without React.
Let me know if this is the wrong place to ask this. I'm having trouble with the Tooltip component. It works fine in development, but when I deploy to Vercel, the build fails.
I'm using Astro 2.3.1 and I've had no issues with the Dropdown, Command Bar, and Dialog components so far. Does anyone know if the problem is on my end or if it's an issue with Astro or the Tooltip component? Any help would be much appreciated!
Let me know if this is the wrong place to ask this. I'm having trouble with the Tooltip component. It works fine in development, but when I deploy to Vercel, the build fails.
I'm using Astro 2.3.1 and I've had no issues with the Dropdown, Command Bar, and Dialog components so far. Does anyone know if the problem is on my end or if it's an issue with Astro or the Tooltip component? Any help would be much appreciated!
I am getting these same displayName undefined errors on build.
@shadcn with the new CLI, do these steps still apply to Astro sites?
I was playing with getting a very minimal example up just to get it to build. Hope this will get you started.
https://github.com/talves/astro-shadcn-ui-template/tree/main
Note: Understand that it has to be a static build using
vite.ssr.noExternal
forradix-ui
. Theastro.config.mjs
config reflects this setup.
How do you use the buttonVariants
?
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.
Can it be used with Astro and Tailwind?