@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
25 lines (22 loc) • 553 B
JavaScript
"use client";
import { jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { cx } from '../../utils/cx.js';
import { chakra } from '../../styled-system/factory.js';
const Image = forwardRef(
function Image2(props, ref) {
const { align, fit = "cover", ...rest } = props;
return /* @__PURE__ */ jsx(
chakra.img,
{
ref,
objectFit: fit,
objectPosition: align,
className: cx("chakra-image", props.className),
...rest
}
);
}
);
export { Image };
;