Add option to layout to justify items

This commit is contained in:
Andrew Kingston 2021-05-17 17:42:12 +01:00
parent 43899cae68
commit 724593f341
1 changed files with 2 additions and 1 deletions

View File

@ -6,10 +6,11 @@
export let gap = "M"
export let noGap = false
export let alignContent = "normal"
export let justifyItems = "stretch"
</script>
<div
style="align-content:{alignContent};"
style="align-content:{alignContent};justify-items:{justifyItems};"
class:horizontal
class="container paddingX-{!noPadding && paddingX} paddingY-{!noPadding &&
paddingY} gap-{!noGap && gap}"