1.1.24 • Published 5 months ago
@exmg/exm-tooltip v1.1.24
<exm-tooltip> 
@exmg/exm-tooltip
Tooltip element to display small amounts of information bound to an element.
Installation
npm install @exmg/exm-tooltipExample Usage
Standard
<div style="position:relative;">
<button id="styledBtn">Test</button>
<exm-tooltip for="styledBtn">the name means "different lizard"</exm-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 |
|---|---|---|
--exm-tooltip-font-size | 10px | Font size of tooltip text |
--exm-tooltip-line-height | 1 | Text line height |
--exm-tooltip-background | #616161 | Background color |
--exm-tooltip-opacity | 0.9 | Tooltip opacity |
--exm-tooltip-text-color | white | Font color |
--exm-tooltip-padding | 8px | Container padding |
--exm-tooltip-border-radius | 2px | Container border radius |
--exm-tooltip-min-width | initial | Min width of the tooltip |
Additional references
1.1.8-alpha.33
9 months ago
1.0.3
9 months ago
0.0.2-alpha.0
8 months ago
0.0.2-alpha.2
8 months ago
0.0.2-alpha.1
8 months ago
1.0.4-alpha.9
9 months ago
1.1.1-alpha.9
9 months ago
1.1.5-alpha.6
8 months ago
1.1.5-alpha.5
8 months ago
1.1.10-alpha.35
7 months ago
1.1.9
9 months ago
1.1.8
9 months ago
1.0.4-alpha.24
9 months ago
1.0.4-alpha.21
9 months ago
1.1.8-alpha.9
9 months ago
1.1.4
9 months ago
1.1.3
9 months ago
1.1.2
9 months ago
1.1.12
8 months ago
1.1.11
8 months ago
1.1.10
8 months ago
1.1.16
7 months ago
1.1.15
7 months ago
1.1.14
7 months ago
1.1.13
7 months ago
1.1.19
7 months ago
1.1.18
7 months ago
1.1.2-alpha.5
9 months ago
1.1.17
7 months ago
1.1.2-alpha.6
9 months ago
1.1.4-alpha.2
9 months ago
1.0.4-alpha.12
9 months ago
1.1.23
5 months ago
1.1.6-alpha.9
9 months ago
1.1.22
6 months ago
1.1.2-alpha.0
9 months ago
1.1.21
7 months ago
1.1.4-alpha.6
9 months ago
1.1.20
7 months ago
1.1.4-alpha.8
9 months ago
1.1.2-alpha.3
9 months ago
1.1.4-alpha.7
9 months ago
1.1.2-alpha.4
9 months ago
1.1.24
5 months ago
1.1.4-alpha.9
9 months ago
1.1.2-alpha.2
9 months ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago