The Unmounted when closed example from the Collapsible docs.
npx shadcn@latest add @hextaui/collapsible-unmounted
collapsible-unmounted