1.0.4 • Published 7 years ago

react-print-components v1.0.4

Weekly downloads
485
License
MIT
Repository
github
Last release
7 years ago

React Print Components

Print specific react components in the browser.

Installation

Run yarn add react-print-components or npm install react-print-components

How to use

import PrintComponents from "react-print-components";

<PrintComponents
  trigger={<button>Print</button>}
>
  <h1>Content to print!</h1>
</PrintComponents>

API

NameTypeDescription
triggerfunctionA function that returns a React Component or HTML element
classNamestringOptional class to pass to the print container
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago