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.
Attribute | Type | Description | Default |
---|---|---|---|
open | boolean | If true the collapse will expand | No default value it's a required prop. |
animate | Animate | Change collapse animation | undefined |
className | string | Add custom className for collapse | '' |
children | node | Add content for collapse | No default value it's a required prop. |
import type { CollapseProps } from "@material-tailwind/react";
type animate = {
mount?: object;
unmount?: object;
};