Used to anchor an element to the edge of a container.
Use the prop to position the element along the edges of the container.
placementUse the offsetX prop to offset the element along the x-axis.
Use the offsetY prop to offset the element along the y-axis.
Use the offset prop to offset the element along both axes.
Here's an example of composing a Float component with an Avatar component.
The Float component accepts any style properties along with the following props:
| Prop | Type | Description |
|---|---|---|
placement | SystemStyleObject['float'] | The placement of the float element relative to its parent. |
offsetX | SystemStyleObject['marginInline'] | The offset along the x-axis. |
offsetY | SystemStyleObject['marginBlock'] | The offset along the y-axis. |
offset | SystemStyleObject['margin'] | The offset along both axes. |