@inkdes-email/head
v0.2.3
Published
A React email head component to wrap emails (InkDes Mailer)
Downloads
204
Maintainers
Readme
@inkdes-email/head
Head wrapper for your email documents.
Installation
# pnpm
pnpm add @inkdes-email/head
# npm
npm install @inkdes-email/head
# yarn
yarn add @inkdes-email/headQuick start
import { Head } from " @inkdes-email/head";
export default function EmailTemplate() {
return <Head>
<title>Some title</title>
</Head>;
}Props
| Name | Type | Required | Default | Description | | -------- | ---------------------- | -------- | ------- | ----------------------------------- | | children | React.ReactNode | Yes | — | Content of the email document | | title | React.ReactNode | No | — | Title | | defaultCss | string | No | Pre-written CSS for email | You can replace this with your own css |
All other standard Head attributes for the <head> element are supported.
License
MIT © iClasser
