Open shashankbhat2 opened 7 months ago
I have the same problem
Still happening
I have the same problem
I got the Tabs working with client:visible
and a workaround for Accordions described in this issue https://github.com/AREA44/astro-shadcn-ui-template/issues/66
So basically wrap shadcn Tabs in another Tabs component. So Tabs inside of Tabs of Tabs ;). Then your new Tabs Component could be used with client:visible
. And if you need dynamic tab content, just pass your data with props.
Not sure if this is a stable solution though?
Describe the bug
Currently when using UI elements such as a Switch in Astro, one has to specify it as
client:visible
to work. Otherwise its not working at all. Also using Tabs givesTabsContent must be used within Tabs
though I am using it within Tabs context.astro.config.mjs
tsconfig.json
components.json
Affected component/components
Switch, Tabs
How to reproduce
client:visible
prop to it inside an Astro component. It will be unresponsive.Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting