mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat(tooltip-icon): make tooltipText slottable
This commit is contained in:
parent
c37890d4b4
commit
6b75607dce
6 changed files with 48 additions and 16 deletions
4
types/TooltipIcon/TooltipIcon.d.ts
vendored
4
types/TooltipIcon/TooltipIcon.d.ts
vendored
|
@ -2,7 +2,8 @@
|
|||
|
||||
export interface TooltipIconProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
|
||||
/**
|
||||
* Specify the tooltip text
|
||||
* Specify the tooltip text.
|
||||
* Alternatively, use the "text" slot
|
||||
* @default ""
|
||||
*/
|
||||
tooltipText?: string;
|
||||
|
@ -36,6 +37,7 @@ export default class TooltipIcon {
|
|||
$$prop_def: TooltipIconProps;
|
||||
$$slot_def: {
|
||||
default: {};
|
||||
text: {};
|
||||
};
|
||||
|
||||
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue