@libraz/mejiro-vue
v0.5.0
Published
Vue components and composables for mejiro — vertical text rendering, EPUB reader, and editor
Downloads
309
Maintainers
Readme
@libraz/mejiro-vue
Vue 3 components and composables for mejiro — vertical text rendering plus full-featured MejiroReader / MejiroEditor / MejiroManuscriptEditor components.
Install
npm install @libraz/mejiro @libraz/mejiro-vue vuePeer dependency: vue >= 3.3.
Quick start
<script setup lang="ts">
import '@libraz/mejiro/render/mejiro-fonts.css'; // optional webfonts
import { MejiroReader } from '@libraz/mejiro-vue';
</script>
<template>
<MejiroReader epub-url="/book.epub" />
</template>MejiroReader fills its container, so the root chain needs an explicit height:
html, body, #app { height: 100%; margin: 0; }Templates
Copy-paste-ready starters live under examples/:
npx degit libraz/mejiro/examples/vue my-reader
npx degit libraz/mejiro/examples/vue-shelf my-library
npx degit libraz/mejiro/examples/vue-editor my-editor
npx degit libraz/mejiro/examples/vue-manuscript my-authorDocumentation
- React / Vue guide — components, composables, props, theming, SSR
- Project README
- 日本語ドキュメント: docs/ja/08-react-and-vue.md
