The offset values in points.
Support
Usage
Shifting a component
Overlapping badge
Vertical offset only
Notes
- The offset is purely visual. The component’s original layout space is preserved — surrounding components are not affected by the offset.
- For layout-affecting position changes, use
.padding()instead.
See Also
- padding — adds layout-affecting space around a component
- scaleEffect — scales the component visually
- rotationEffect — rotates the component visually