Skip to content

Drawer animations are not working correctly #803

Description

@sglza

I've been going over this for a bit and can't seem to figure out exactly what is causing it, the Drawer works perfectly on the docs page (both BaseUI's and CossUI's). I believe the issue is in the classes passed to DrawerPrimitive.Popup.

To replicate, I created a new NextJS app and set up CossUI

pnpm create next-app@latest my-app --yes
cd my-app
npx shadcn@latest init @coss/style

Implement a basic Drawer on page.tsx

<Drawer>
  <DrawerTrigger render={<Button variant="outline" />}>
    Open drawer
  </DrawerTrigger>
  <DrawerPopup showBar>
    <DrawerHeader className="text-center">
      <DrawerTitle>Notifications</DrawerTitle>
      <DrawerDescription>
        This is the description of the drawer.
      </DrawerDescription>
    </DrawerHeader>
    <DrawerFooter
      className="justify-center sm:justify-center"
      variant="bare"
    >
      <DrawerClose render={<Button variant="outline" />}>
        Close
      </DrawerClose>
    </DrawerFooter>
  </DrawerPopup>
</Drawer>
Screen.Recording.2026-06-22.at.1.11.36.a.m.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions