@react-email/img
Advanced tools
+0
-1
@@ -46,5 +46,4 @@ //#region rolldown:runtime | ||
| Img.displayName = "Img"; | ||
| Img.tailwindTreatAsElement = true; | ||
| //#endregion | ||
| exports.Img = Img; |
+0
-1
@@ -21,3 +21,2 @@ import * as React from "react"; | ||
| Img.displayName = "Img"; | ||
| Img.tailwindTreatAsElement = true; | ||
@@ -24,0 +23,0 @@ //#endregion |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.mjs","names":[],"sources":["../src/img.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport type ImgProps = Readonly<React.ComponentPropsWithoutRef<'img'>>;\n\nexport const Img = React.forwardRef<HTMLImageElement, ImgProps>(\n ({ alt, src, width, height, style, ...props }, ref) => (\n <img\n {...props}\n alt={alt}\n height={height}\n ref={ref}\n src={src}\n style={{\n display: 'block',\n outline: 'none',\n border: 'none',\n textDecoration: 'none',\n ...style,\n }}\n width={width}\n />\n ),\n);\n\nImg.displayName = 'Img';\n(Img as any).tailwindTreatAsElement = true;\n"],"mappings":";;;;AAIA,MAAa,MAAM,MAAM,YACtB,EAAE,KAAK,KAAK,OAAO,QAAQ,MAAO,GAAG,SAAS,QAC7C,oBAAC;CACC,GAAI;CACC;CACG;CACH;CACA;CACL,OAAO;EACL,SAAS;EACT,SAAS;EACT,QAAQ;EACR,gBAAgB;EAChB,GAAG;EACJ;CACM;EACP,CAEL;AAED,IAAI,cAAc;AAClB,AAAC,IAAY,yBAAyB"} | ||
| {"version":3,"file":"index.mjs","names":[],"sources":["../src/img.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport type ImgProps = Readonly<React.ComponentPropsWithoutRef<'img'>>;\n\nexport const Img = React.forwardRef<HTMLImageElement, ImgProps>(\n ({ alt, src, width, height, style, ...props }, ref) => (\n <img\n {...props}\n alt={alt}\n height={height}\n ref={ref}\n src={src}\n style={{\n display: 'block',\n outline: 'none',\n border: 'none',\n textDecoration: 'none',\n ...style,\n }}\n width={width}\n />\n ),\n);\n\nImg.displayName = 'Img';\n"],"mappings":";;;;AAIA,MAAa,MAAM,MAAM,YACtB,EAAE,KAAK,KAAK,OAAO,QAAQ,MAAO,GAAG,SAAS,QAC7C,oBAAC;CACC,GAAI;CACC;CACG;CACH;CACA;CACL,OAAO;EACL,SAAS;EACT,SAAS;EACT,QAAQ;EACR,gBAAgB;EAChB,GAAG;EACJ;CACM;EACP,CAEL;AAED,IAAI,cAAc"} |
+3
-3
| { | ||
| "name": "@react-email/img", | ||
| "version": "0.0.12-tailwindv4.0", | ||
| "version": "0.0.12", | ||
| "description": "Display an image in your email", | ||
@@ -35,3 +35,3 @@ "sideEffects": false, | ||
| "engines": { | ||
| "node": ">=18.0.0" | ||
| "node": ">=20.0.0" | ||
| }, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
| "typescript": "5.8.3", | ||
| "@react-email/render": "1.3.1", | ||
| "@react-email/render": "2.0.1", | ||
| "tsconfig": "0.0.0" | ||
@@ -46,0 +46,0 @@ }, |
9575
-1.55%71
-2.74%