Alpine's Collapse plugin allows you to expand and collapse elements using smooth animations.
frameworkreactivedeclarativeplugin
https://alpinejs.dev/plugins/collapse