Tailwind CSS Collapse - Props

The following props are available for collapse component. These are the custom props that we've added for the collapse component and you can use all the other native props as well.

AttributeTypeDescriptionDefault
openbooleanIf true the collapse will expandNo default value it's a required prop.
animateAnimateChange collapse animationundefined
classNamestringAdd custom className for collapse''
childrennodeAdd content for collapseNo default value it's a required prop.


For TypeScript Only

import type { CollapseProps } from "@material-tailwind/react";

Types - Animate

type animate = {
  mount?: object;
  unmount?: object;
};
Edit this page on Github