Tooltip UI component by Custom Elements
Implement tooltip UI component by Custom Elements.
Demo
Examples
<x-tooltip
open=""
close-text="Close"
close-src="/assets/tooltip-close.svg"
>
</x-tooltip>
Attributes
-
open
[optional] - Whether the tooltip are visible.
-
close-text
[optional] - The text of the close button in the tooltip (Image alternative text). The default value is `Close`.
-
close-src
[optional] - The address of the image resource for the close button in the tooltip. The default is a gray x button (SVG format).