@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
35 lines (34 loc) • 764 B
JavaScript
import { jsx as r } from "react/jsx-runtime";
import { forwardRef as n } from "react";
import { MultiSelectDropdownProvider as a } from "./contexts/MultiSelectDropdown.provider.js";
import { Wrapper as s } from "./components/Wrapper/Wrapper.js";
const u = n(
({
options: t,
multiselect: e,
value: p,
onChange: i,
onBlur: l,
name: o,
isLoading: d,
noOptionsText: m,
...f
}, c) => /* @__PURE__ */ r(
a,
{
defaultOptions: t,
multiselect: e,
value: p,
onChange: i,
onBlur: l,
name: o,
isLoading: d,
noOptionsText: m,
children: /* @__PURE__ */ r(s, { ref: c, ...f, name: o })
}
)
);
u.displayName = "MultiSelectDropdown";
export {
u as MultiSelectDropdown
};