creativetimofficial / material-tailwind

@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.

Home Page:https://material-tailwind.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to disable animation for Accordion?

sebkasanzew opened this issue · comments

I want to disable the "open"-animation of the <Accordion />.

Overriding the animation prop doesn't work and only leads to a stuttering animation:

<Accordion
  open={isOpen}
  animate={{
    unmount: {
      height: '0',
      transition: { duration: 0 },
    },
    mount: {
      height: 'auto',
      transition: { duration: 0 },
    },
  }}
>
{/* ... */}

Is there another way without modifying the source code?