mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +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
6
types/Grid/Column.d.ts
vendored
6
types/Grid/Column.d.ts
vendored
|
@ -35,6 +35,12 @@ export interface ColumnProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNam
|
|||
*/
|
||||
noGutterRight?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to add top and bottom padding to the column
|
||||
* @default false
|
||||
*/
|
||||
padding?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the aspect ratio of the column
|
||||
*/
|
||||
|
|
6
types/Grid/Grid.d.ts
vendored
6
types/Grid/Grid.d.ts
vendored
|
@ -43,6 +43,12 @@ export interface GridProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameM
|
|||
* @default false
|
||||
*/
|
||||
noGutterRight?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to add top and bottom padding to all columns
|
||||
* @default false
|
||||
*/
|
||||
padding?: boolean;
|
||||
}
|
||||
|
||||
export default class Grid {
|
||||
|
|
6
types/Grid/Row.d.ts
vendored
6
types/Grid/Row.d.ts
vendored
|
@ -37,6 +37,12 @@ export interface RowProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMa
|
|||
* @default false
|
||||
*/
|
||||
noGutterRight?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to add top and bottom padding to all columns
|
||||
* @default false
|
||||
*/
|
||||
padding?: boolean;
|
||||
}
|
||||
|
||||
export default class Row {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue