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 { Html } from "@inkdes-email/components";

export default function Email() {
  return <Html>Hello</Html>;
}

Props

NameTypeRequiredDefaultDescription
childrenanyYesContent of the email document
dir”ltr” | “rtl”No”ltr”Text direction for the document, it will affect all components
langstringNo”en”Language of the document
defaultSpacingstring one value in cssNo”20px”This will set the whole email default spacing (padding bottom defaults)
All other standard HTML attributes for the <html> element are supported.
I