import { cs } from "../utils/styles.js";
import "../utils/index.js";
import { omitThemingProps, useStyleConfig } from "../core/theme.js";
import { styled } from "../core/styled.js";
import { vui } from "../core/vui.js";
import "../core/index.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";
var image_default = Image;

//#endregion
export { Image, ImageBase, image_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=image.js.map