@saekitominaga/customelements-tooltip

Implement Tooltip UI component by Custom Elements.


Keywords
web-components, custom-elements, tooltip
License
MIT
Install
npm install @saekitominaga/customelements-tooltip@1.2.2

Documentation

Tooltip UI component by Custom Elements

npm version

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).