ItemPosition
The Item Position component can be used to consistently position all of an item's interactions and preview across all design layers.
| name | type | required | comment |
|---|---|---|---|
children | ReactNode | ReactNode[] | yes | |
dimensions | Dimensions | yes | Dimensions of the item, in pixels. |
position | Coordinates | yes | Position of the image, in pixels. |
rotation | number | yes | Rotation of the image in degrees. |
zIndex | number | yes | |
ariaLabel | string | no | |
className | string | no | |
role | AriaRole | no | |
style | CSSProperties | no |
Note that in the demo below, the same position object is passed to both the item's preview and outline.
Result
Loading...
Live Editor