How to use dynamic calculated tailwind classes in Shadcn UI with react
I am using NextJS with Shadcn. I am trying to display a command component that contains a dynamic number of items from a database.
How to use dynamic tailwind classes in Shadcn UI with react
I am using NextJS with Shadcn. I am trying to display a command component that contains a dynamic number of items from a database.
How to use absolute positioning in Shadcn Accordion?
I have a Shadcn accordion component, and inside this I have a div that I want to overlay with a notification icon in the top right corner. To achieve this, I’m using absolute position within the div. The issue is that AccordionContent
uses the tailwind overflow-hidden
, meaning that the notification can’t appear over top of the div. Here’s what it looks like so far:
Tailwind CSS is not being applied in Shadcn component
I’m making a DropdownMenu using Shadcn like so: