UNPKG

@empathyco/x-components

Version:
29 lines (26 loc) 756 B
import { defineComponent } from 'vue'; import { useCollapseAnimation } from './use-collapse-animation.js'; /** * Renders a transition wrapping the element passed in the default slot and animating * it with a width animation. * * @public */ var _sfc_main = defineComponent({ name: 'CollapseWidth', props: { /** * Indicates if the transition must be applied on the initial render of the node. */ appear: { type: Boolean, default: true, }, }, setup() { return useCollapseAnimation('width'); }, // TODO Add support for extending enter, after-enter and leave transitions }); export { _sfc_main as default }; //# sourceMappingURL=collapse-width.vue2.js.map