mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat: make renderIcon/icon prop consistent (#496)
This commit is contained in:
parent
f2a3f8d2e1
commit
63ef51209d
13 changed files with 67 additions and 67 deletions
2
types/Notification/NotificationButton.d.ts
vendored
2
types/Notification/NotificationButton.d.ts
vendored
|
@ -10,7 +10,7 @@ export interface NotificationButtonProps extends svelte.JSX.HTMLAttributes<HTMLE
|
|||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
renderIcon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Specify the title of the icon
|
||||
|
|
4
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
4
types/UIShell/GlobalHeader/HeaderAction.d.ts
vendored
|
@ -14,9 +14,9 @@ export interface HeaderActionProps extends svelte.JSX.HTMLAttributes<HTMLElement
|
|||
isOpen?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the icon props
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: { render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean };
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Specify the text
|
||||
|
|
|
@ -13,9 +13,9 @@ export interface HeaderActionLinkProps extends svelte.JSX.HTMLAttributes<HTMLEle
|
|||
href?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon props
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: { render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean };
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
4
types/UIShell/SideNav/SideNavLink.d.ts
vendored
4
types/UIShell/SideNav/SideNavLink.d.ts
vendored
|
@ -18,9 +18,9 @@ export interface SideNavLinkProps extends svelte.JSX.HTMLAttributes<HTMLElementT
|
|||
text?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon props
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: { render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean };
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
4
types/UIShell/SideNav/SideNavMenu.d.ts
vendored
4
types/UIShell/SideNav/SideNavMenu.d.ts
vendored
|
@ -13,9 +13,9 @@ export interface SideNavMenuProps extends svelte.JSX.HTMLAttributes<HTMLElementT
|
|||
text?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon props
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: { render: import("carbon-icons-svelte").CarbonIcon; skeleton: boolean };
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML button element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue