0.1.3 • Published 6 years ago

paper-print-react v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Paper React for happy printing

This component is based on @cognitom excellent paper-css paper-printing hack

Recently, we say "front-end" every day. Then why don't we make the printing documents in front-end? We believe we can make it perfectly without back-end. Paper React is just a small component, but it helps us create them in browser easily.

Table of Contents

Installation

$ yarn add paper-print-react
# npm install paper-print-react

Guides

Basic Usage

import paper-print-react like this:

import { A4 } from 'paper-print-react';

How to use component in aplication

<A4>
  All content that can be placed on A4 page
</A4>
// Choose A3, A4 or A5 importing relative component
import { A3, A4, A5 } from 'paper-print-react';

<A3>
  All content that can be placed on A3 page
</A3>

All available page sizes is listed below:

  • A5, A5 landscape
  • A4, A4 landscape
  • A3, A3 landscape
<A4 landscape>

Page

<Page/>

Props background

Sheet

A5

A4

A3

NoPrint

<NoPrint>This content will not print thanks to the Notprinted.</NoPrint>

See also the examples for detail.

Why Paper React?

Previewable

You can check the design and layout before printing. See the browser like when you build a web page.

Preview

This example could be printed like this.

Dialog

Want more?

Want more? gif

Open an issue!

Contributing

  1. Fork it paper-print-react
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

The MIT License. Read LICENSE for further information.

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago