mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(tooltip-icon): add icon prop
This allows consumers to pass a Carbon icon as a prop instead of using the default slot.
This commit is contained in:
parent
c75fe5853d
commit
278d906509
5 changed files with 40 additions and 15 deletions
5
types/TooltipIcon/TooltipIcon.d.ts
vendored
5
types/TooltipIcon/TooltipIcon.d.ts
vendored
|
@ -10,6 +10,11 @@ export interface TooltipIconProps
|
|||
*/
|
||||
tooltipText?: string;
|
||||
|
||||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Set the alignment of the tooltip relative to the icon
|
||||
* @default "center"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue