Skip to main content

1. Install dependencies

Install the InkDes Email package locally and a few components.
# pnpm
pnpm add @inkdes-email/components

# npm
npm install @inkdes-email/components

# yarn
yarn add @inkdes-email/components

2. Usage

import { Head } from " @inkdes-email/components";

export default function EmailTemplate() {
  return <Head>
    <title>Some title</title>
  </Head>;
}

Props

NameTypeRequiredDefaultDescription
childrenReact.ReactNodeYesContent of the email document
titleReact.ReactNodeNoTitle
defaultCssstringNoPre-written CSS for emailYou can replace this with your own css
All other standard Head attributes for the <head> element are supported.
I