UNPKG

@pdf-viewer/react

Version:

A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.

28 lines (27 loc) 783 B
import { jsxs as a, jsx as i } from "react/jsx-runtime"; import { c as e } from "../../clsx-0c6e471a.js"; import { withRef as u } from "../../utils/withRef.js"; import "react"; const r = { "rp-input": "_rp-input_3rj4v_1", "rp-input-wrapper": "_rp-input-wrapper_3rj4v_22", "rp-input-icon": "_rp-input-icon_3rj4v_26" }, h = u((n, t) => { const { className: s, icon: p, children: o, ...c } = n; return /* @__PURE__ */ a("div", { className: r["rp-input-wrapper"], children: [ /* @__PURE__ */ i( "input", { ...c, "data-icon": !!p, ref: t, className: e(s, r["rp-input"], "ignore-hover") } ), p && /* @__PURE__ */ i("span", { className: r["rp-input-icon"], children: p }), o ] }); }); export { h as UIInput };