Skip to content

Resize

Control element resizing

Syntax

visual="resize:[value]"

Values

ValueCSS OutputDescription
noneresize: noneNo resize
bothresize: bothResize both
xresize: horizontalResize horizontal
yresize: verticalResize vertical

Examples

html
<textarea visual="resize:y">Vertical resize only</textarea>

Preview

Resize

visual="resize:y" - Allow element resizing

none
x
y
both
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:small" visual="bg:primary text:white rounded:small">none</div>
  <div space="p:small" visual="bg:primary text:white rounded:small">x</div>
  <div space="p:small" visual="bg:primary text:white rounded:small">y</div>
  <div space="p:small" visual="bg:primary text:white rounded:small">both</div>
</div>