UNPKG

react-file-previewer

Version:

A browser/device-agnostic file previewer for PDF and image file types built on top of React-PDF.

15 lines (12 loc) 245 B
import React from 'react'; const Button = ({ children, onClick, disabled }) => ( <button type="button" onClick={onClick} disabled={disabled} className="preview-button" > {children} </button> ); export default Button;