Skip to content

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 ​

PropTypeDefaultDescription
text *string—The hint.
labelstring"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 ​

SlotPropsDescription
defaultanyButton content; a question mark by default.