UNPKG

@postenbring/hedwig-react

Version:

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

65 lines (63 loc) 1.34 kB
import { InputGroup } from "./chunk-GIFDGUFW.mjs"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-YOSPWY5K.mjs"; // src/form/select/select.tsx import { forwardRef } from "react"; import { clsx } from "@postenbring/hedwig-css/typed-classname"; import { jsx } from "react/jsx-runtime"; var Select = forwardRef(function Select2(_a, ref) { var _b = _a, { className, size, validationMessage, validationMessageProps, errorMessage, labelProps, label, id, style, disabled, "data-color": dataColor, children } = _b, rest = __objRest(_b, [ "className", "size", "validationMessage", "validationMessageProps", "errorMessage", "labelProps", "label", "id", "style", "disabled", "data-color", "children" ]); return /* @__PURE__ */ jsx( InputGroup, { className: clsx("hds-select", className), disabled, validationMessage, validationMessageProps, errorMessage, id, label, labelProps, style, size, "data-color": dataColor, children: /* @__PURE__ */ jsx("select", __spreadProps(__spreadValues({ disabled, ref }, rest), { children })) } ); }); Select.displayName = "Select"; export { Select }; //# sourceMappingURL=chunk-D7L7OLFL.mjs.map