UNPKG

@uva-glass/component-library

Version:

React components UvA

29 lines (28 loc) 780 B
import { jsx as s } from "react/jsx-runtime"; import { forwardRef as _ } from "react"; import { c } from "../../clsx-OuTLNxxd.js"; import '../../assets/Input.css';const f = "_input_1utsi_1", t = { input: f, "input--numeric": "_input--numeric_1utsi_13", "input--error": "_input--error_1utsi_18", "input--full-with": "_input--full-with_1utsi_23" }, x = _(function({ id: i, appearance: u, type: r = "text", isNumeric: n, fullWidth: p, ...o }, e) { return /* @__PURE__ */ s( "input", { ...o, ref: e, id: i, className: c(t.input, { [t["input--error"]]: u === "error", [t["input--full-with"]]: p, [t["input--numeric"]]: n }), type: r } ); }); export { x as Input }; //# sourceMappingURL=Input.js.map