Sizing

Use size, minSize, and maxSize to control dimensions.

Common Properties

  • size: main size
  • minSize: minimum size
  • maxSize: maximum size
Loading Preview…

Width and Height

Control the precise dimensions of an element.

Use size, minSize, and maxSize to set boundaries for an element's dimensions.

Tip

🔗 MDN Documentation: width, height, min-width, max-width

Properties

These properties take a Size object containing width and height.

PropertyDescription
sizeIdeal size. If auto, size is determined by content or flex/grid rules.
minSizeMinimum size. Prevents the item from shrinking below this value.
maxSizeMaximum size. Prevents the item from growing above this value.

Dimension Values

The width and height properties accept specific value types:

ValueDescriptionExample (JS)
AutoSize to content (or stretch in some flex cases)."auto"
PointsExact pixel value.150
PercentPercentage of parent's size."50%" or 0.5 (if using float helpers) usually string "50%" in JS binding.

Example

Loading Preview…

Next Steps

© 2026 ByteLand Technology Limited