Skip to content

Releases: smastrom/solid-collapse

v1.1.0

26 Nov 21:59

Choose a tag to compare

v1.1.0

What's new

  • Solid Collapse now calculates the optimal duration according to your content height. You can opt-it by referencing the variable --sc-auto-duration in your transition property:
.my-transition {
  transition: height var(--sc-auto-duration) cubic-bezier(0.65, 0, 0.35, 1);
}
  • onCollapsed, onExpanded callbacks are now available as props.

What's improved

  • margin: 0, padding: 0 and border: 0 none are now always enforced on the collapse element.

Update now: yarn add vue-collapsed@latest