mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
Add padding prop to Grid component
This commit is contained in:
parent
1e72ea9942
commit
9af756bd4b
9 changed files with 88 additions and 3 deletions
|
@ -25,6 +25,8 @@
|
|||
/** Set to `true` to remove the right gutter */
|
||||
export let noGutterRight = false;
|
||||
|
||||
/** Set to `true` to add top and bottom padding to all columns */
|
||||
export let padding = false;
|
||||
$: props = {
|
||||
...$$restProps,
|
||||
class: [
|
||||
|
@ -35,6 +37,7 @@
|
|||
noGutter && "bx--no-gutter",
|
||||
noGutterLeft && "bx--no-gutter--left",
|
||||
noGutterRight && "bx--no-gutter--right",
|
||||
padding && "bx--row-padding",
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" "),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue