BoxStyle
Interface BoxStyle
interface BoxStyleProperties
alignSelf
CrossAxisCross-axis alignment override for this child within its parent stack.
background
RGBSolid fill color.
backgroundImage
BackgroundImageImage painted behind children and clipped to the box rectangle.
border
BorderBorder specification.
borderRadius
numberCorner radius in points. Applies to background and border.
borderSides
BorderSidesPer-side border strokes. Square-corner; use border for rounded all-side borders.
bottom
numberOffset from the containing block's bottom edge when position is absolute.
breakInside
BreakInsidePage fragmentation hint. avoid keeps the box atomic under renderFlow.
grow
numberFlex grow weight (siblings divide remaining main-axis space proportionally).
height
numberFixed height; if omitted, the box sizes to its content.
left
numberOffset from the containing block's left edge when position is absolute.
margin
EdgesInputOuter spacing around the box.
maxHeight
numberMaximum height; the box will shrink to at most this height.
minHeight
numberMinimum height; the box will grow to at least this height.
opacity
numberAlpha transparency, 0 = fully transparent, 1 = fully opaque.
overflow
OverflowPaint overflow behavior for stack descendants. hidden clips children and
absolute descendants to the box rectangle. Default visible.
padding
EdgesInputInner spacing between the box's border and its children.
position
PositionCSS-like positioning for boxes. Positioned boxes establish the containing
block for absolute descendants. absolute removes the box from stack flow
and positions it against the nearest positioned ancestor, or render root.
right
numberOffset from the containing block's right edge when position is absolute.
rotate
numberClockwise paint rotation in degrees around the box center. Rotation does not affect layout, measurement, or pagination.
shrink
numberFlex shrink weight. When the children of an hstack/vstack overflow their
container along the main axis, items with shrink > 0 give up
proportional shares (shrink * baseSize) of the overflow. Shrink only
kicks in when intrinsic size exceeds the available space; otherwise it
has no effect. Default 0 (no shrink).
top
numberOffset from the containing block's top edge when position is absolute.
transform
BoxTransform[]Ordered CSS-style paint transforms. Functions are composed from left to right and do not affect layout, measurement, or pagination.
transformOrigin
TransformOriginTransform pivot as point lengths plus fractions of the border-box size. Defaults to the box center.
width
numberFixed width; if omitted, the box sizes to its content.
zIndex
numberPaint order for positioned boxes. Higher values render later, above lower
values. Boxes with the same zIndex keep document order. Default 0.