UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

21 lines (17 loc) 647 B
"use client"; import { createComponent } from "../../core/components/create-component.js"; import { imageStyle } from "./image.style.js"; //#region src/components/image/image.tsx const { PropsContext: ImagePropsContext, usePropsContext: useImagePropsContext, withContext } = createComponent("image", 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 export { Image, ImagePropsContext, useImagePropsContext }; //# sourceMappingURL=image.js.map