Version: 4.x
vime-tooltip
A small pop-up box that appears when a user moves their mouse over an element. Their main purpose is to provide a description about the function of that element.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Attribute | Description | Type | Default |
---|---|---|---|---|
active | active | Whether the tooltip is visible or not. | boolean | false |
direction | direction | Determines if the tooltip should grow according to its contents to the left/right. By default content grows outwards from the center. | "left" ∣ "right" ∣ undefined | undefined |
hidden | hidden | Whether the tooltip is displayed or not. | boolean | false |
position | position | Determines if the tooltip appears on top/bottom of it's parent. | "bottom" ∣ "top" | 'top' |
#
SlotsSlot | Description |
---|---|
Used to pass in the contents of the tooltip. |
#
CSS Custom PropertiesName | Description |
---|---|
--vm-tooltip-bg | The background color of the tooltip. |
--vm-tooltip-border-radius | The border radius of the tooltip. |
--vm-tooltip-box-shadow | The box shadow cast around the tooltip. |
--vm-tooltip-color | The text color of the tooltip. |
--vm-tooltip-fade-duration | The length in seconds that the tooltip will take to fade in/out. |
--vm-tooltip-fade-timing-func | The transition timing function for fading in and out. |
--vm-tooltip-font-size | The font size of the tooltip text. |
--vm-tooltip-padding | The padding inside the tooltip. |
--vm-tooltip-spacing | The space between the tooltip and its parent when active. |
--vm-tooltip-z-index | The position in the UI z-axis stack inside the player. |
#
Dependencies#
Used by- vime-caption-control
- vime-fullscreen-control
- vime-mute-control
- vime-pip-control
- vime-playback-control
- vime-scrubber-control
- vime-settings-control
#
GraphBuilt with StencilJS