mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Add padding prop to Grid component (#420)
* Add padding prop to Grid component * Fix file name * Build lib * Typo Co-authored-by: Richard O'flynn <richard.oflynn@brighter-software.co.uk>
This commit is contained in:
parent
f4c940d5ee
commit
b597a64131
11 changed files with 116 additions and 0 deletions
|
@ -25,6 +25,9 @@
|
|||
/** 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 +38,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