1.2.3 • Published 8 days ago

react-flipbook-nv v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

React Flipbook

A React component that allows you to display a flipbook style animation.

Installation

npm install react-flipbook

Usage

import React from 'react';
import { Flipbook } from 'react-flipbook';

export default function App() {
    const pageSize = {
        width: 600,
        height: 750,
    };

    const pages = Array.from({ length: 10 }, (_, i) => <div>{i + 1}</div>);

    return <Flipbook pageSize={pageSize} pages={pages} />;
}

Important: You can use any component as a page, not just a div.

Props

NameDescriptionType
pageSizeThe size of the pages. It should have a width and a height property.{width: number; height: number}
pagesThe pages to be displayed. Note that the order matters.React.ReactNode[]

License

MIT License

1.2.0

8 days ago

1.2.3

8 days ago

1.2.2

8 days ago

1.2.1

8 days ago

1.1.2

2 months ago

1.1.1

2 months ago

1.1.0

2 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago