@react-email/column
Advanced tools
Comparing version
import * as React from 'react'; | ||
declare type RootProps = React.ComponentPropsWithoutRef<'div'>; | ||
declare type RootProps = React.ComponentPropsWithoutRef<'td'>; | ||
interface ColumnProps extends RootProps { | ||
style?: React.CSSProperties; | ||
} | ||
declare const Column: React.ForwardRefExoticComponent<Readonly<ColumnProps> & React.RefAttributes<HTMLDivElement>>; | ||
declare const Column: React.ForwardRefExoticComponent<Readonly<ColumnProps> & React.RefAttributes<HTMLTableDataCellElement>>; | ||
export { Column, ColumnProps }; |
@@ -39,17 +39,18 @@ "use strict"; | ||
const styleDefault = { | ||
display: "inline-block", | ||
width: "100%", | ||
fontSize: "0px", | ||
verticalAlign: "top", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
...style | ||
}; | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { | ||
ref: forwardedRef, | ||
style: styleDefault, | ||
role: "presentation", | ||
...props, | ||
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
"td", | ||
{ | ||
ref: forwardedRef, | ||
style: styleDefault, | ||
role: "presentation", | ||
...props, | ||
children | ||
}) | ||
}); | ||
} | ||
); | ||
} | ||
@@ -56,0 +57,0 @@ ); |
{ | ||
"name": "@react-email/column", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Display a column that separates content areas vertically in your email", | ||
@@ -23,2 +23,14 @@ "sideEffects": false, | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/zenorocha/react-email.git", | ||
"directory": "packages/column" | ||
}, | ||
"keywords": [ | ||
"react", | ||
"email" | ||
], | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
"dependencies": { | ||
@@ -44,2 +56,2 @@ "react": "18.2.0" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
 | ||
 | ||
@@ -35,2 +35,3 @@ <div align="center"><strong>@react-email/column</strong></div> | ||
```jsx | ||
import { Section } from '@react-email/section'; | ||
import { Column } from '@react-email/column'; | ||
@@ -40,3 +41,7 @@ | ||
return( | ||
<Column>{/* Any content. */}<Column/> | ||
<Section> | ||
<Column>A<Column/> | ||
<Column>B<Column/> | ||
<Column>C<Column/> | ||
</Section> | ||
); | ||
@@ -50,3 +55,3 @@ }; | ||
| <img src="https://assets.react.email/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://assets.react.email/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://assets.react.email/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://assets.react.email/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://assets.react.email/icons/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://assets.react.email/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> | | ||
| <img src="https://react.email/static/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://react.email/static/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://react.email/static/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://react.email/static/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://react.email/static/icons/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://react.email/static/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> | | ||
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | | ||
@@ -53,0 +58,0 @@ | Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ | |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8387
3.34%94
2.17%60
9.09%0
-100%0
-100%