@wordpress/components
Version:
UI components for WordPress.
29 lines (28 loc) • 748 B
JavaScript
// packages/components/src/custom-select-control-v2/index.tsx
import * as Ariakit from "@ariakit/react";
import _CustomSelect from "./custom-select";
import Item from "./item";
import { jsx as _jsx } from "react/jsx-runtime";
function CustomSelectControlV2(props) {
const {
defaultValue,
onChange,
value,
...restProps
} = props;
const store = Ariakit.useSelectStore({
setValue: (nextValue) => onChange?.(nextValue),
defaultValue,
value
});
return /* @__PURE__ */ _jsx(_CustomSelect, {
...restProps,
store
});
}
CustomSelectControlV2.Item = Item;
var custom_select_control_v2_default = CustomSelectControlV2;
export {
custom_select_control_v2_default as default
};
//# sourceMappingURL=index.js.map