@react-email/html
Advanced tools
Comparing version
import * as React from 'react'; | ||
type RootProps = React.ComponentPropsWithoutRef<"html">; | ||
type HtmlProps = RootProps; | ||
type HtmlProps = Readonly<React.ComponentPropsWithoutRef<"html">>; | ||
declare const Html: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>, "ref">> & React.RefAttributes<HTMLHtmlElement>>; | ||
export { Html, HtmlProps }; |
@@ -69,6 +69,8 @@ "use strict"; | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
var Html = React.forwardRef((_a, ref) => { | ||
var _b = _a, { children, lang = "en", dir = "ltr" } = _b, props = __objRest(_b, ["children", "lang", "dir"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("html", __spreadProps(__spreadValues({}, props), { dir, lang, ref, children })); | ||
}); | ||
var Html = React.forwardRef( | ||
(_a, ref) => { | ||
var _b = _a, { children, lang = "en", dir = "ltr" } = _b, props = __objRest(_b, ["children", "lang", "dir"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("html", __spreadProps(__spreadValues({}, props), { dir, lang, ref, children })); | ||
} | ||
); | ||
Html.displayName = "Html"; | ||
@@ -75,0 +77,0 @@ // Annotate the CommonJS export names for ESM import in node: |
{ | ||
"name": "@react-email/html", | ||
"version": "0.0.10-canary.0", | ||
"version": "0.0.10", | ||
"description": "A React html component to wrap emails", | ||
@@ -41,7 +41,6 @@ "sideEffects": false, | ||
"devDependencies": { | ||
"@babel/preset-react": "7.23.3", | ||
"typescript": "5.1.6", | ||
"@react-email/render": "0.0.18-canary.0", | ||
"tsconfig": "0.0.0", | ||
"eslint-config-custom": "0.0.0" | ||
"@react-email/render": "1.0.0", | ||
"eslint-config-custom": "0.0.0", | ||
"tsconfig": "0.0.0" | ||
}, | ||
@@ -48,0 +47,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4
-20%125
2.46%10910
-0.66%