UNPKG

@pdf-viewer/react

Version:

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

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