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
9
types/Grid/Row.d.ts
vendored
9
types/Grid/Row.d.ts
vendored
|
@ -1,6 +1,7 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface RowProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
export interface RowProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set to `true` to render a custom HTML element
|
||||
* Props are destructured as `props` in the default slot (e.g. <Row let:props><section {...props}>...</section></Row>)
|
||||
|
@ -37,6 +38,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