0.1.3 • Published 6 years ago
paper-print-react v0.1.3
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
- Guides
- Why Paper React?
- License
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.
This example could be printed like this.
Want more?
Open an issue!
Contributing
- Fork it paper-print-react
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
License
The MIT License. Read LICENSE for further information.