Skip to content

vue-book-reader - an easy way to embed a reader into your webapp

vue-book-reader is a vue wrapper for foliate-js - library for rendering e-books in the browser. Supports EPUB, MOBI, KF8 (AZW3), FB2, CBZ, PDF (experimental; requires PDF.js), or add support for other formats yourself by implementing the book interface

Basic usage

bash
npm install vue-book-reader --save

And in your vue-component...

VueReader Attributes

NameDescriptionTypeDefault
urlbook url or Filestring/File
locationset / update location of the bookstring/number
titlethe title of the bookstring
showTocwhether to show the tocbooleantrue

VueReader Slots

NameDescription
titleYou have access to title by slot

Recipes and tips

custom css

Display a scrolled epub-view

Smooth Scroll

Import file

Current progress

Get book information

Search in the book