Padding

Control the inner spacing of an element.

padding creates space between an element's content and its border.

Example

Loading Preview…

Quick Notes

  • padding is a Rect containing left, right, top, bottom.
  • It affects the inner size available for children.

Next Steps

© 2026 ByteLand Technology Limited