mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
feat(grid): support gutter, aspectRatio props
This commit is contained in:
parent
c86a2b17a8
commit
3f64a947a7
4 changed files with 121 additions and 16 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue