feat(grid): support gutter, aspectRatio props

This commit is contained in:
Eric Liu 2020-07-23 13:55:45 -07:00
commit 3f64a947a7
4 changed files with 121 additions and 16 deletions

View file

@ -1,12 +1,22 @@
<script>
export let as = false;
export let condensed = false;
export let noGutter = false;
export let noGutterLeft = false;
export let noGutterRight = false;
$: props = {
...$$restProps,
class: [$$restProps.class, "bx--row", condensed && "bx--row--condensed"]
class: [
$$restProps.class,
"bx--row",
condensed && "bx--row--condensed",
noGutter && "bx--no-gutter",
noGutterLeft && "bx--no-gutter--left",
noGutterRight && "bx--no-gutter--right",
]
.filter(Boolean)
.join(" ")
.join(" "),
};
</script>