Skip to main content

ItemPosition

The Item Position component can be used to consistently position all of an item's interactions and preview across all design layers.

nametyperequiredcomment
childrenReactNode | ReactNode[]yes
dimensionsDimensionsyes

Dimensions of the item, in pixels.

positionCoordinatesyes

Position of the image, in pixels.

rotationnumberyes

Rotation of the image in degrees.

zIndexnumberyes
ariaLabelstringno
classNamestringno
roleAriaRoleno
styleCSSPropertiesno

Note that in the demo below, the same position object is passed to both the item's preview and outline.

Result
Loading...
Live Editor