8.2.3 • Published 9 months ago
@exmg/exmg-tooltip v8.2.3
<exmg-tooltip>

@exmg/exmg-tooltip
Tooltip element to display small amounts of information bound to an element.
Installation
npm install @exmg/exmg-tooltip
Example Usage
Standard
<div style="position:relative;">
<button id="styledBtn">Test</button>
<exmg-tooltip for="styledBtn">the name means "different lizard"</exmg-tooltip>
</div>
API
Slots
Name | Description |
---|---|
default | Button to handle copy to clipboard |
Properties/Attributes
Name | Type | Default | Description |
---|---|---|---|
for | string | None | The id of the element that the tooltip is anchored to. This element must be a sibling of the tooltip. |
position | string | bottom | Positions the tooltip to the top, right, bottom, left of its content. |
fitToVisibleBounds | boolean | None | The id of the element that the tooltip is anchored to. This element must be a sibling of the tooltip. |
xOffset | number | None | X axis offset from the parent's center. |
yOffset | number | None | Y axis offset from the parent's center. |
Methods
None
Events
None
CSS Custom Properties
Name | Default | Description |
---|---|---|
--exmg-tooltip-font-size | 10px | Font size of tooltip text |
--exmg-tooltip-line-height | 1 | Text line height |
--exmg-tooltip-background | #616161 | Background color |
--exmg-tooltip-opacity | 0.9 | Tooltip opacity |
--exmg-tooltip-text-color | white | Font color |
--exmg-tooltip-padding | 8px | Container padding |
--exmg-tooltip-border-radius | 2px | Container border radius |
--exmg-tooltip-min-width | initial | Min width of the tooltip |
Additional references
8.2.3
9 months ago
8.2.2
9 months ago
8.2.1
9 months ago
9.0.3
1 year ago
9.0.1
1 year ago
8.1.35
2 years ago
8.1.34
2 years ago
8.1.31
2 years ago
8.1.33
2 years ago
8.1.32
2 years ago
8.1.26
3 years ago
8.1.17
4 years ago
8.1.9
4 years ago
8.1.10
4 years ago
8.1.13
4 years ago
8.1.12
4 years ago
8.1.14
4 years ago
8.1.2
4 years ago
8.1.1
4 years ago
8.1.8
4 years ago
8.1.4
4 years ago
8.1.3
4 years ago
8.1.6
4 years ago
8.1.5
4 years ago
8.1.0
4 years ago
8.0.1
4 years ago
8.0.3
4 years ago
8.2.0
4 years ago
8.0.2
4 years ago
8.0.0
4 years ago
2.0.2
4 years ago
2.0.0
4 years ago
1.0.2
4 years ago
1.0.1
5 years ago
1.0.0
5 years ago