@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
23 lines (19 loc) • 779 B
JavaScript
"use client";
const require_create_component = require('../../core/components/create-component.cjs');
const require_image_style = require('./image.style.cjs');
//#region src/components/image/image.tsx
const { PropsContext: ImagePropsContext, usePropsContext: useImagePropsContext, withContext } = require_create_component.createComponent("image", require_image_style.imageStyle);
/**
* `Image` is a component that displays images with fallback support.
*
* @see https://yamada-ui.com/docs/components/image
*/
const Image = withContext("img")(void 0, ({ fit,...rest }) => ({
objectFit: fit,
...rest
}));
//#endregion
exports.Image = Image;
exports.ImagePropsContext = ImagePropsContext;
exports.useImagePropsContext = useImagePropsContext;
//# sourceMappingURL=image.cjs.map