mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
feat(tooltip-definition): make tooltipText slottable
This commit is contained in:
parent
6ae0e31011
commit
cc01b0fb5b
4 changed files with 78 additions and 22 deletions
|
@ -73,6 +73,6 @@
|
|||
<slot />
|
||||
</button>
|
||||
<div role="tooltip" id="{id}" class:bx--assistive-text="{true}">
|
||||
{tooltipText}
|
||||
<slot name="tooltip">{tooltipText}</slot>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue