JSPM

@inkdes-email/head

0.2.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 40
  • Score
    100M100P100Q69432F
  • License MIT

A React email head component to wrap emails (InkDes Mailer)

Package Exports

  • @inkdes-email/head

Readme

@inkdes-email/head

Head wrapper for your email documents.

inkdes-logo

Installation

# pnpm
pnpm add  @inkdes-email/head

# npm
npm install  @inkdes-email/head

# yarn
yarn add  @inkdes-email/head

Quick 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