mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +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
|
@ -9,7 +9,7 @@
|
|||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
* @type {typeof import("carbon-icons-svelte").CarbonIcon}
|
||||
*/
|
||||
export let renderIcon = Close20;
|
||||
export let icon = Close20;
|
||||
|
||||
/**
|
||||
* Specify the title of the icon
|
||||
|
@ -36,7 +36,7 @@
|
|||
on:mouseleave
|
||||
>
|
||||
<svelte:component
|
||||
this="{renderIcon}"
|
||||
this="{icon}"
|
||||
title="{title}"
|
||||
class="bx--{notificationType}-notification__close-icon"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue