1. Install dependencies
Install the InkDes Email package locally and a few components.2. Usage
Alignment & styling
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
src | string | Yes | "" | Path or URL to the image |
alt | string | No | ”image” | Alternate description for the image |
width | number | string | No | — | Image width. Numbers are treated as px in style |
height | number | string | No | — | Image height. Numbers are treated as px in style |
center | boolean | No | false | Centers the image within the table cell |
borderRadius | string | No | — | Applied as CSS border-radius on the image |
dir | ”ltr” | “rtl” | No | Comes from wrapping Html component’s dir context prop which is ltr | Text direction |
spacing | string | No | Comes from wrapping Html component’s defaultSpacing context prop which is 20px | Spacing bottom, by default comes from Html defaultSpacing prop |
style | React.CSSProperties | No | — | |
plain | boolean | No | false | Returns plain image without container and spacing |