mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +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
|
@ -18,3 +18,12 @@ By default, `direction` is `"bottom"` and `align` is `"center"`.
|
|||
<TooltipDefinition direction="top" align="start" tooltipText="IBM Corporate Headquarters is based in Armonk, New York.">
|
||||
Armonk
|
||||
</TooltipDefinition>
|
||||
|
||||
### Custom tooltip slot
|
||||
|
||||
<TooltipDefinition>
|
||||
Armonk
|
||||
<span slot="tooltip" style="color: red">
|
||||
IBM Corporate Headquarters is based in Armonk, New York.
|
||||
</span>
|
||||
</TooltipDefinition>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue