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

export default function EmailTemplate() {
  return <>
      <Ul spacing='20px' fontSize='14px' >
          ....
      </Ul>
  </>
}

Props

NameTypeRequiredDefaultDescription
childrenReact.ReactNodeYesContent of the email document
dir”ltr” | “rtl”NoComes from wrapping Html component’s dir context prop which is ltrText direction for the wrapper cell
spacingstringNoComes from wrapping Html component’s defaultSpacing context prop which is 20pxSpacing bottom, by default comes from Html defaultSpacing prop
colorstringNo#000
fontSizestringNo
lineHeightstringNo
fontWeightstringNo
classNamestringNo
plainbooleanNofalseUsed when you don’t want to use table or margin bottom just a paragraph without spacing
letterSpacingstringNo
paddingLeftstringNo20px
I