import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import ListDivider from "../list/listDivider.js";
import ListHeading from "../list/listHeading.js";
import List from "../list/list.js";
import { useSelectContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/select/selectGroup.tsx
/** Displays a list of options with optional heading to describe an individual group. */
const SelectGroup = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Select", useSelectContext());
	return /* @__PURE__ */ jsx(List, {
		className: cs("vui-selectGroup", "vui-allowScroll", className),
		ref,
		...styles.group,
		...rest
	});
});
SelectGroup.Divider = ListDivider;
SelectGroup.Heading = ListHeading;
SelectGroup.displayName = "SelectGroup";

//#endregion
export { SelectGroup as default };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=selectGroup.js.map