@azu/react-comic-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

react-comic-viewer

react-comic-viewer is comic viewer for react.

Features

  • TypeScript support

Installation

npm i --save react-comic-viewer

Usage

import React from "react";
import ComicViewer from "react-comic-viewer";

function App() {
  return (
    <ComicViewer pages={["hoge.png", "fuga.jpg", "piyo.jpg", "moge.jpg"]} />
  );
}

export default App;

Return

Key Type Description default
pages Array<string | ReactNode> Comic Pages -
switchingRatio? number Ratio to switch to single page 1
text? Record<"expansion" | "fullScreen" | "move" | "normal", string> Text displayed { expansion: "Expansion", fullScreen: "Full screen", move: "Move", normal: "Normal" }

Readme

Keywords

Package Sidebar

Install

npm i @azu/react-comic-viewer

Weekly Downloads

5

Version

0.6.3

License

MIT

Unpacked Size

51.8 kB

Total Files

10

Last publish

Collaborators

  • azu