Refit

This enhancer gives you a convenient way to let the user refit the viewport for better reading experience. For example by reducing the viewport width to see more pages at once on scrolling mode.

Getting Started

npm install @prose-reader/enhancer-refit

Connect the enhancer to your reader:

import { refitEnhancer } from "@prose-reader/enhancer-refit"

const createAppReader = refitEnhancer(createReader)

const reader = createAppReader({
  refit: {
    viewportFit: "tablet"
  }
})

Last updated

Was this helpful?