<LiquidSpacer />
is a component that animates its
own width and height to match the width and height of its
content. Unlike the other template helpers, it doesn't run arbitrary
animations or use transition rules. It just manages smoothly growing
and shrinking a container, whenever the stuff inside changes.
'slide'
.
true
) to control
whether to grow horizontally and vertically. Useful for
fluid-width or fluid-height content which will grow in height or
width.
true
.
<div id="liquid-spacer-demo">
<label>
<Input @type="checkbox" @checked= />
Show Long Message
</label>
<LiquidSpacer @growDuration=>
</LiquidSpacer>
</div>