# LayoutAbsolute
LayoutAbsolute
lets you place contents at 9 absolute positions in a relative position element.
paddingTop
: 5
paddingBottom
: 5
paddingLeft
: 5
paddingRight
: 5
topLeft
top
topRight
right
bottomRight
bottom
bottomLeft
left
center
||
# Usage
LayoutAbsolute
must be placed in a relative position element- Place your contents inside corresponding slots of 9 absolute positions
topLeft
top
topRight
right
bottomRight
bottom
bottomLeft
left
center
- You can use multiple slots within one
LayoutAbsolute
at the same time
<div class="layout-u-position-relative"> <img src="https://picsum.photos/600/400?grayscale" style="aspect-ratio: 4 / 3; width: 100%;" > <LayoutAbsolute padding-x="5" padding-y="5" > <template slot="topLeft"> <button>topLeft</button> </template> <template slot="top"> <button>top</button> </template> <template slot="topRight"> <button>topRight</button> </template> <template slot="right"> <button>right</button> </template> <template slot="bottomRight"> <button>bottomRight</button> </template> <template slot="bottom"> <button>bottom</button> </template> <template slot="bottomLeft"> <button>bottomLeft</button> </template> <template slot="left"> <button>left</button> </template> <template slot="center"> <button>center</button> </template> </LayoutAbsolute> </div>
# Props
← Overview LayoutAlign →