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

export default function EmailTemplate() {
  return <>
      <Hr />
  </>
}

Props

NameTypeRequiredDefaultDescription
colorstringNo#e5e5e5
dir”ltr” | “rtl”NoComes from wrapping Html component’s dir context prop which is ltrText direction
spacingstringNoComes from wrapping Html component’s defaultSpacing context prop which is 20pxSpacing bottom, by default comes from Html defaultSpacing prop
widthstringNo100%width of seperator
alignstringNocenterIf width is less than 100% then alignment becomes important
styleReact.CSSPropertiesNo
I