import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { useListContext } from "./context.js";
import Divider from "../divider/divider.js";
import { jsx } from "react/jsx-runtime";

//#region src/list/listDivider.tsx
/** Displays a divider line within the List. */
const ListDivider = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("List", useListContext());
	return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Divider, {
		className: cs("vui-listDivider", className),
		my: 1,
		ref,
		...styles.divider,
		...rest
	}) });
});
ListDivider.displayName = "ListDivider";

//#endregion
export { ListDivider as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=listDivider.js.map