import { cs } from "../utils/styles.js";
import { omitThemingProps, useStyleConfig } from "../core/theme.js";
import styled from "../core/styled.js";
import vui from "../core/vui.js";
import { jsx } from "react/jsx-runtime";

//#region src/image/image.tsx
const ImageBase = styled.imgBox`
  height: auto;
  object-fit: cover;
  width: 100%;
`;
/** Displays an image. Includes base styling. */
const Image = vui((props, ref) => {
	const { alt, className, title, ...rest } = omitThemingProps(props);
	const styles = useStyleConfig("Image", props);
	return /* @__PURE__ */ jsx(ImageBase, {
		alt: alt ? alt : title ? title : "",
		className: cs("vui-image", className),
		ref,
		title,
		...styles,
		...rest
	});
});
Image.displayName = "Image";

//#endregion
export { ImageBase, Image as default };
globalThis.__vuiVersion__ = "4.0.3"
//# sourceMappingURL=image.js.map