UNPKG

@pdftron/webviewer-react-toolkit

Version:

A React component library for integrating with PDFTron WebViewer API.

8 lines (7 loc) 428 B
import classnames from 'classnames'; import React, { forwardRef } from 'react'; import { Button } from '../Button'; export const IconButton = forwardRef(({ children, className, ...props }, ref) => { const iconButtonClass = classnames('ui__base ui__iconButton', className); return (React.createElement(Button, Object.assign({}, props, { className: iconButtonClass, buttonStyle: "borderless", ref: ref }), children)); });