Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@smastrom-dolly smastrom-dolly released this 26 Nov 21:59
· 35 commits to main since this release

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