Getting started
Install
sh
npm i vue-manga-uivue@^3.5 is the only peer dependency. There are no runtime dependencies.
Register
All at once — then use <m-button>, <m-toggle> … in any template:
ts
import { createApp } from 'vue';
import MangaUi from 'vue-manga-ui';
import 'vue-manga-ui/style.css';
import App from './App.vue';
createApp(App).use(MangaUi).mount('#app');Or import only what you use (tree-shakes):
vue
<script setup lang="ts">
import { MButton } from 'vue-manga-ui';
import 'vue-manga-ui/style.css';
</script>
<template>
<MButton @click="save">Confirm</MButton>
</template>Font (optional)
The kit's display type (buttons, tabs, toasts, lettering) is drawn in M Udar, the kit's own slanted caps face for Latin and Cyrillic. It ships as a separate stylesheet with a 16 KB font, so pages that skip it keep the system fonts:
ts
import 'vue-manga-ui/font.css';See the M Udar font for the full character set.
The rules every component follows
- Native underneath. Each control wraps a real
<button>,<input>or radio group, so forms (name), keyboard and screen readers behave like native ones. v-modelon every value control: toggle, checkbox, slider, input, radio, rating, tabs.- Effects are decoration. They draw on a fixed canvas over the page that ignores the pointer and is hidden from assistive tech. With
prefers-reduced-motion: reduceeffects are skipped; the springs and state changes stay. - Idle is free. One shared animation loop runs only while something is moving.
Limits
- Effects fly over everything (the canvas sits at the top z-index), including modals.
- Bursts drawn behind a control are clipped by an ancestor with
overflow: hidden. - Sound-effect lettering draws Latin and Cyrillic in M Udar when
font.cssis imported; Japanese uses Dela Gothic One if the page loads it, otherwise the system's Japanese font.