@chakra-ui/image
Version:
React component for progressive image loading
1 lines • 731 B
Source Map (JSON)
{"version":3,"sources":["../src/img.tsx"],"sourcesContent":["import { HTMLChakraProps, chakra, forwardRef } from \"@chakra-ui/system\"\n\nimport { NativeImageOptions, NativeImage } from \"./native-image\"\n\nexport interface ImgProps extends HTMLChakraProps<\"img\">, NativeImageOptions {}\n\n/**\n * Fallback component for most SSR users who want to use the native `img` with\n * support for chakra props\n */\nexport const Img = forwardRef<ImgProps, \"img\">((props, ref) => (\n <chakra.img ref={ref} as={NativeImage} className=\"chakra-image\" {...props} />\n))\n"],"mappings":";;;;;;AAAA,SAA0B,QAAQ,kBAAkB;AAWlD;AADK,IAAM,MAAM,WAA4B,CAAC,OAAO,QACrD,oBAAC,OAAO,KAAP,EAAW,KAAU,IAAI,aAAa,WAAU,gBAAgB,GAAG,OAAO,CAC5E;","names":[]}