@pdf-viewer/react
Version:
A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.
29 lines (28 loc) • 890 B
JavaScript
import { jsxs as a, jsx as i } from "react/jsx-runtime";
import { c as u } from "../../clsx-0c6e471a.js";
import { withRef as l } from "../../utils/withRef.js";
import "react";
const t = {
"rp-input": "_rp-input_3rj4v_1",
"rp-input-wrapper": "_rp-input-wrapper_3rj4v_22",
"rp-input-icon": "_rp-input-icon_3rj4v_26"
}, h = l((n, e) => {
const { className: o, icon: p, children: s, ...r } = n, c = r.role || (r.type === "text" || !r.type ? "textbox" : void 0);
return /* @__PURE__ */ a("div", { className: t["rp-input-wrapper"], children: [
/* @__PURE__ */ i(
"input",
{
...r,
role: c,
"data-icon": !!p,
ref: e,
className: u(o, t["rp-input"], "ignore-hover")
}
),
p && /* @__PURE__ */ i("span", { className: t["rp-input-icon"], "aria-hidden": "true", children: p }),
s
] });
});
export {
h as UIInput
};