UNPKG

@mozaic-ds/vue

Version:

Mozaic-Vue is the Vue.js implementation of ADEO Design system

20 lines (13 loc) 894 B
# MTooltip A tooltip is a small, contextual message that appears when users hover over, focus on, or tap an element, providing additional information or guidance without cluttering the interface. Tooltips are commonly used to explain icons, abbreviations, or complex actions. They typically disappear automatically when the user moves away from the trigger element. ## Props | Name | Description | Type | Default | | --- | --- | --- | --- | | `id*` | A unique identifier for the tooltip, used to describe the tooltip. | `string` | - | | `text*` | Content of the tooltip. | `string` | - | | `position` | Determines the position of the tooltip. | `"left"` `"right"` `"top"` `"bottom"` | `"top"` | | `pointer` | If `true`, the tooltip display a pointer. | `boolean` | `true` | ## Slots | Name | Description | | --- | --- | | `default` | The tooltip will point to the content of the slot. |