mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props
This commit is contained in:
parent
d38e6d8be6
commit
75d4b4cf03
219 changed files with 5168 additions and 5259 deletions
91
types/Grid/Grid.d.ts
vendored
91
types/Grid/Grid.d.ts
vendored
|
@ -1,51 +1,52 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface GridProps {
|
||||
/**
|
||||
* Set to `true` to render a custom HTML element
|
||||
* Props are destructured as `props` in the default slot (e.g. <Grid let:props><header {...props}>...</header></Grid>)
|
||||
* @default false
|
||||
*/
|
||||
as?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the condensed variant
|
||||
* @default false
|
||||
*/
|
||||
condensed?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the narrow variant
|
||||
* @default false
|
||||
*/
|
||||
narrow?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the fullWidth variant
|
||||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to remove the gutter
|
||||
* @default false
|
||||
*/
|
||||
noGutter?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to remove the left gutter
|
||||
* @default false
|
||||
*/
|
||||
noGutterLeft?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to remove the right gutter
|
||||
* @default false
|
||||
*/
|
||||
noGutterRight?: boolean;
|
||||
}
|
||||
|
||||
export default class Grid {
|
||||
$$prop_def: {
|
||||
/**
|
||||
* Set to `true` to render a custom HTML element
|
||||
* Props are destructured as `props` in the default slot (e.g. <Grid let:props><header {...props}>...</header></Grid>)
|
||||
* @default false
|
||||
*/
|
||||
as?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the condensed variant
|
||||
* @default false
|
||||
*/
|
||||
condensed?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the narrow variant
|
||||
* @default false
|
||||
*/
|
||||
narrow?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to use the fullWidth variant
|
||||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to remove the gutter
|
||||
* @default false
|
||||
*/
|
||||
noGutter?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to remove the left gutter
|
||||
* @default false
|
||||
*/
|
||||
noGutterLeft?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to remove the right gutter
|
||||
* @default false
|
||||
*/
|
||||
noGutterRight?: boolean;
|
||||
};
|
||||
|
||||
$$prop_def: GridProps;
|
||||
$$slot_def: {
|
||||
default: { props?: { class: string } };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue