UxStretchBox

components/ux/StretchBox.vue

Animated container that measures and smoothly stretches to fit its content dimensions.

This content is measured and animated.

components/ux/StretchBox.vue

Usage

<UxStretchBox :watch = "watch" :transition = "true" :stretchToContainer = "false" :stretchWidth = "true" :stretchHeight = "true" :minWidth = "0" :minHeight = "0" > Content here </UxStretchBox>

Props

PropTypeDefaultDescription
watchany''Value to watch for re-measurement
transitionBooleantrueEnable smooth transitions
stretchToContainerBooleanfalseStretch to parent container size
stretchWidthBooleantrueAnimate width
stretchHeightBooleantrueAnimate height
minWidthNumber0Minimum width in px
minHeightNumber0Minimum height in px

Slots

SlotDescription
defaultContent to measure and stretch around

Related

Qpoint Brand Style Guide