Skip to content

New transition property in 2.1 shadows transition property from framer motion when using as on ComboboxOptions #3333

Closed
@augustl

Description

@augustl

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

2.1.1

What browser are you using?

Firefox

Describe your issue

This code worked in Headlessui 2.0:

<ComboboxOptions
    as={motion.div}
    transition={{ease: "linear", duration: 2}}
    initial={{ y: -20, opacity: 0 }}
    animate={{ y: 0, opacity: 1 }}
    exit={{ y: -20, opacity: 0 }}
>

But in Headlessui 2.1, it causes a typescript compile error (it only accepts a boolean or undefined), and does not seem to forward the transition property to the motion.div from framer motion as it did before.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions