0.2.5 ā€¢ Published 2 years ago

@diagoriente/react-preview-a4 v0.2.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

react-preview-a4

šŸ“„ A responsive print preview in A4 format.

Table of Contents

Installation

To install, you can use npm:

$ npm install --save @diagoriente/react-preview-a4
$ yarn add @diagoriente/react-preview-a4

Examples

Here is a simple example of react-preview-a4:

import React from "react";
import ReactDOM from "react-dom";
import PreviewA4 from "react-preview-a4";

function App() {
  // your code

  return (
    <div>
      <PreviewA4>
        <h1>Your code</h1>
      </PreviewA4>
    </div>
  );
}

ReactDOM.render(<App />, appElement);

You can find the example in the examples directory, which you can run in a local development server using npm start or yarn start.

Demo

There is a demo hosted on CodeSandbox.

0.2.5

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago