Appearance
Tooltip
Brief, contextual, and non-intrusive pop-up message that provides supplementary information when hovering over an element in a user interface
The Component
Hover me
Hover me
This is a tooltip
This tooltip follows the mouse
Usage
The tooltip is positioned using popper.js. Use in combination with the useTooltip composition function to set the tooltip info object.
To make the tooltip follow the mouse instead of being positioned on an element, set the followMouse prop to true.
Data
Tooltip info object passed to setTooltip function from useTooltip composable:
js
{
target: Element,
data: {}
}Optional: meta
Props
| Name | Default | Description | Type |
|---|---|---|---|
| currentPage | 1 | The currently active page | Number |
| totalItems | 100 | The total number of results | Number |
| itemsPerPage | 10 | The number of results shown per page | Number |
| currentPageClass | page-btn-current | Class for the currently active page | String |
Events
| Name | Argument | Description |
|---|---|---|
| @changePage | page number | Emitted when page is changed |
Dependencies
- @popperjs/core
useTooltipfunction