mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
chore: update component docs, types
This commit is contained in:
parent
334ea7f063
commit
151252b5ee
2 changed files with 71 additions and 45 deletions
19
types/index.d.ts
vendored
19
types/index.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
// Type definitions for carbon-components-svelte 0.8
|
||||
// Type definitions for carbon-components-svelte 0.9
|
||||
// https://github.com/IBM/carbon-components-svelte
|
||||
|
||||
// Carbon Icon type from carbon-icons-svelte 10.14
|
||||
|
@ -1059,7 +1059,12 @@ export class StructuredListRow {
|
|||
|
||||
export class Tab {
|
||||
$$prop_def: {
|
||||
label?: string; // default: ""
|
||||
href?: string; // default: "#"
|
||||
disabled?: boolean; // default: false
|
||||
tabindex?: string; // default: "0"
|
||||
id?: string;
|
||||
ref?: null | HTMLAnchorElement; // default: null
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1070,11 +1075,18 @@ export class TabContent {
|
|||
}
|
||||
|
||||
export class Tabs {
|
||||
$$prop_def: {};
|
||||
$$prop_def: {
|
||||
selected?: number; // default: 0
|
||||
type?: "default" | "container"; // default: "default"
|
||||
iconDescription?: string; // default: "Expand/Collapse"
|
||||
triggerHref?: string; // default: "#"
|
||||
};
|
||||
}
|
||||
|
||||
export class TabsSkeleton {
|
||||
$$prop_def: {};
|
||||
$$prop_def: {
|
||||
count?: number; // default: 4
|
||||
};
|
||||
}
|
||||
|
||||
export class TagSkeleton {
|
||||
|
@ -1377,6 +1389,7 @@ export class HeaderAction {
|
|||
isOpen?: boolean; // default: false
|
||||
icon?: { render: CarbonIcon; skeleton: boolean };
|
||||
text?: string;
|
||||
ref?: null | HTMLButtonElement; // default: null
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue