@pdf-viewer/react
Version:
A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.
26 lines (25 loc) • 645 B
JavaScript
import { jsx as c } from "react/jsx-runtime";
import { c as p } from "../../clsx-0c6e471a.js";
import { withRef as u } from "../../utils/withRef.js";
import "react";
const o = {
"rp-button": "_rp-button_1jswj_1",
"rp-button-active": "_rp-button-active_1jswj_18"
}, _ = u((r, s) => {
const { children: e, active: t, className: a, role: n, ...i } = r;
return /* @__PURE__ */ c(
"button",
{
tabIndex: 0,
ref: s,
role: n,
"aria-pressed": t !== void 0 ? t : void 0,
...i,
className: p(o["rp-button"], a, t ? o["rp-button-active"] : ""),
children: e
}
);
});
export {
_ as UIButton
};