1. Install dependencies
Install the InkDes Email package locally and a few components.2. Usage
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| children | React.ReactNode | Yes | — | Content of the email document |
| dir | ”ltr” | “rtl” | No | Comes from wrapping Html component’s dir context prop which is ltr | Text direction |
| backgroundColor | string | Yes | — | — |
| style | React.CSSProperties | No | - | - |
| width | number or “100%“ | No | — | width of container |
| padding | string | No | 10px 16px | inner padding |
| className | string | no | — | — |
| borderRadius | string | No | ||
| backgroundImageUrl | string | no | Box background image | |
| backgroundPosition | string | no | ”bottom” | when there is background image url this is css property for position |
| backgroundRepeat | string | no | ”no-repeat, no-repeat” | when there is background image url this is css property for repeat |
| itemCenter | boolean | no | true | Inner items will be aligned center |
| center | boolean | no | true | The box will be positioned center of email |