UNPKG

@pdftron/webviewer-react-toolkit

Version:

A React component library for integrating with PDFTron WebViewer API.

10 lines (9 loc) 541 B
import { __assign, __rest } from "tslib"; import classnames from 'classnames'; import React, { forwardRef } from 'react'; import { Button } from '../Button'; export var IconButton = forwardRef(function (_a, ref) { var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]); var iconButtonClass = classnames('ui__base ui__iconButton', className); return (React.createElement(Button, __assign({}, props, { className: iconButtonClass, buttonStyle: "borderless", ref: ref }), children)); });