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

//#region src/list/listIcon.tsx
/** Displays an icon on the side of the ListItem. */
const ListIcon = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("List", useListContext());
	return /* @__PURE__ */ jsx(icon_default, {
		className: cs("vui-listIcon", className),
		ref,
		...styles.icon,
		...rest
	});
});
ListIcon.displayName = "ListIcon";
var listIcon_default = ListIcon;

//#endregion
export { ListIcon, listIcon_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=listIcon.js.map