apps/mantine.dev/src/pages/core/collapse.mdx
import { CollapseDemos, UseCollapseDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Collapse);
Set the following props to control the transition:
transitionDuration – duration in mstransitionTimingFunction – timing function (ease, linear, etc.), defaults to easeonTransitionEnd – called when transition ends (both open and close)use-collapse is the hook version of the Collapse component.
It allows more flexible usage and control over the collapse behavior.