The tooltip component is a simple and customizable tooltip that receives an text and a position.
npm install sling-web-component-tooltip
<sling-tooltip></sling-tooltip>
sling-web-framework
Name | Type | Default Values | ReflectToAttribute | Observer | callSdk |
---|---|---|---|---|---|
position | String | right | ✔️ | ||
tooltiptext | String | undefined | ✔️ |
Name | Description |
---|---|
position | Defines where the tooltip should show. |
tooltiptext | Set the tooltip text. |
This component have no events.
The tooltip will hover the content inside the tag
<sling-tooltip position="right" tooltiptext="Tooltip">Hover me</sling-tooltip>