
Description
Vue Collapsed is a library for animating an element's height in Vue 3 and Nuxt. Browsers do not transition smoothly from a fixed height to auto, so this library handles the CSS height transition from any value to auto and back. It includes a single collapse component, an accordion, individual control of each panel, callbacks that fire when a transition starts or ends, and an advanced mode for expanded and collapsed states. It can be nested, and it handles elements that are mounted, unmounted, displayed or hidden. The site shows examples with aria attributes, so the collapsible content can be made accessible. The library is designed to be used with reactive state, and the examples show the approach using reactive(). The playground on the site links each example to its source file on GitHub, which makes it easy to copy a pattern into your own project. The code is open source and public on GitHub under smastrom.…
Highlights
- Animates height from any value to auto and back
- Single collapse, accordion and per panel control
- Callbacks on transition events
- Nested collapse and aria attributes
- Works with Vue 3 and Nuxt
Ratings & Reviews
No ratings yet
Be the first to rate vue-collapsed.
People also visit

vue-collapsed
Vue 3 CSS height transition from any to auto and vice versa. Accordion ready

react-animate-height
Lightweight React component for animating height using CSS transitions

react-collapse
Component-wrapper for collapse animation for elements with variable
vue-collapsed FAQ
What does Vue Collapsed do?
It animates an element between a fixed height and auto, which plain CSS cannot transition smoothly, for Vue 3 and Nuxt.
Can I build an accordion with it?
Yes. The site has an accordion example, plus examples for a single collapse and individual control.
Does it support accessibility attributes?
The site shows examples with aria attributes.
Does it have callbacks?
Yes. The site has an example with callbacks for transition events.
Can I see how the examples are built?
Yes. Each example links to its source file in the GitHub playground folder.
Is it free?
Yes. The code is open source on GitHub.
What are the best vue-collapsed alternatives?
Popular alternatives to vue-collapsed include vue-collapsed, react-animate-height and react-collapse. See all vue-collapsed alternatives














