@uva-glass/component-library
Version:
React components UvA
29 lines (28 loc) • 780 B
JavaScript
import { jsx as l } from "react/jsx-runtime";
import { forwardRef as _ } from "react";
import { c } from "../../clsx-OuTLNxxd.js";
import '../../assets/Input.css';const f = "_input_25til_1", t = {
input: f,
"input--numeric": "_input--numeric_25til_13",
"input--error": "_input--error_25til_18",
"input--full-with": "_input--full-with_25til_23"
}, x = _(function({ id: i, appearance: r, type: n = "text", isNumeric: u, fullWidth: p, ...o }, e) {
return /* @__PURE__ */ l(
"input",
{
...o,
ref: e,
id: i,
className: c(t.input, {
[t["input--error"]]: r === "error",
[t["input--full-with"]]: p,
[t["input--numeric"]]: u
}),
type: n
}
);
});
export {
x as Input
};
//# sourceMappingURL=Input.js.map