Relative Content

Tag Archive for next.jstailwind-cssshadcnui

Tailwind styles not applied to components inside Shadcn Sheet

Building a project in Nextjs 14 using tailwind and Shadcn components I ran into an awkward issue, particularly with the Sheet component from Shadcn, making it impossible to style components inside of it. E.g. setting a background color to a Button in a Form inside the Sheet component, the background of the Button becomes completely transparent/white.

Needs some assistance in the sidebar closing

I am working on a Sidebar with Next.js, Tailwindcss, Shadcn-ui and i have written almost the same logic for opening the drawer if i click on a Sidebar icon. But i want to close the sidebar if i click again on the sidebar icon but my current code is not working properly. Can someone please look into it and tell where i am doing wrong.

Needs some assistance in the sidebar closing

I am working on a Sidebar with Next.js, Tailwindcss, Shadcn-ui and i have written almost the same logic for opening the drawer if i click on a Sidebar icon. But i want to close the sidebar if i click again on the sidebar icon but my current code is not working properly. Can someone please look into it and tell where i am doing wrong.