UNPKG

@postenbring/hedwig-react

Version:

React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).

37 lines (35 loc) 1.04 kB
import { InputGroup } from "./chunk-XZ43OSZ5.mjs"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-YOSPWY5K.mjs"; // src/form/input/input.tsx import { forwardRef } from "react"; import { clsx } from "@postenbring/hedwig-css/typed-classname"; import { jsx } from "react/jsx-runtime"; var Input = forwardRef(function Input2(_a, ref) { var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]); return /* @__PURE__ */ jsx( InputGroup, { className: clsx("hds-input", className), disabled, errorMessage, id, label, labelProps, readOnly, style, variant, children: /* @__PURE__ */ jsx("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref })) } ); }); Input.displayName = "Input"; export { Input }; //# sourceMappingURL=chunk-ITLZQ47H.mjs.map