Add option to layout to justify items
This commit is contained in:
parent
43899cae68
commit
724593f341
|
@ -6,10 +6,11 @@
|
||||||
export let gap = "M"
|
export let gap = "M"
|
||||||
export let noGap = false
|
export let noGap = false
|
||||||
export let alignContent = "normal"
|
export let alignContent = "normal"
|
||||||
|
export let justifyItems = "stretch"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style="align-content:{alignContent};"
|
style="align-content:{alignContent};justify-items:{justifyItems};"
|
||||||
class:horizontal
|
class:horizontal
|
||||||
class="container paddingX-{!noPadding && paddingX} paddingY-{!noPadding &&
|
class="container paddingX-{!noPadding && paddingX} paddingY-{!noPadding &&
|
||||||
paddingY} gap-{!noGap && gap}"
|
paddingY} gap-{!noGap && gap}"
|
||||||
|
|
Loading…
Reference in New Issue