MTooltip <m-tooltip>
A help button whose hint springs out like a speech bubble, with puffs and a hollow カチッ. Opens on hover, focus and tap; Escape closes it. The hint is linked with aria-describedby.
Demo source
vue
<script setup lang="ts">
import { MTooltip } from 'vue-manga-ui';
</script>
<template>
<p class="row">Password rules <MTooltip text="At least 12 characters. Make it legendary." /></p>
</template>Props
| Prop | Type | Default | Description |
|---|---|---|---|
text * | string | — | The hint. |
label | string | "Help" | Accessible name of the button. |
Other HTML attributes (id, class, aria-*, data-*…) fall through to the component’s element and are type-checked.
Slots
| Slot | Props | Description |
|---|---|---|
default | any | Button content; a question mark by default. |