Data
- Components
- Shapes
- Line
Line
type: "line"3 styles · 7 propertiesA thin filled bar used as a divider or underline — a rectangle specialized for separators (rendered by the rect renderer).
Updated



Try your own data
Change the line here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.
3 styles
Pick one to preview itExamples
Each example is the same line with different values. The JSON is what you send.
Newsletter section divider
An indigo rule separating an imagined newsletter header from the story list below it.
{
"divider.fillColor": "#4F46E5"
}Divider on a dark report card
A muted slate rule splitting the title from the stats on a dark dashboard snapshot.
{
"divider.fillColor": "#475569"
}Good for
- Section dividers in report and email images
- Heading underlines in brand colors
- Accent bars recolored per campaign or category
New values, every render
Recolor per render with '<key>.fillColor'; opacity and borderColor are overridable too. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
-H "dma-api-key: $IMEJIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"divider.fillColor": "#4F46E5"
}' \
-o image.pngconst res = await fetch(`https://render.imejis.io/v1/${process.env.IMEJIS_DESIGN_ID}`, {
method: "POST",
headers: {
"dma-api-key": process.env.IMEJIS_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
"divider.fillColor": "#4F46E5"
}),
})
if (!res.ok) throw new Error(`render failed: ${res.status}`)
const image = Buffer.from(await res.arrayBuffer())import os
import requests
response = requests.post(
f"https://render.imejis.io/v1/{os.environ['IMEJIS_DESIGN_ID']}",
headers={
"dma-api-key": os.environ["IMEJIS_API_KEY"],
"Content-Type": "application/json",
},
json={
"divider.fillColor": "#4F46E5"
},
)
response.raise_for_status()
with open("image.png", "wb") as f:
f.write(response.content)Properties
Every property works the same in the editor, in design JSON and as an API override.
7 properties shown
| Property | Type | Default | What it does |
|---|---|---|---|
| Look | |||
fillColor | color | "#808080" | Line color. |
| Frame | |||
opacity | number | 1 | Overall component opacity from 0 (transparent) to 1 (opaque). |
borderWidth | number | 0 | Border thickness in pixels around the component. |
borderColor | color | "transparent" | Border color (any CSS color). |
borderStyle | 'solid' | 'dashed' | 'dotted' | 'double' | 'none' | "solid" | Border line style. |
borderRadius | number | 0 | Corner radius in pixels. |
boxShadow | string | — | CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)". |
Line questions
Can I recolor the line per API call?
Yes — '<key>.fillColor' changes the color per render; opacity and border properties are overridable too.
How do I control the thickness?
The line is a thin rectangle, so its thickness is simply the component's height (or width when vertical) — 2px for a hairline, more for accents.
How is line different from rectangle?
It renders through the same rect renderer — line is a purpose-named thin rectangle for separators, so everything a rectangle can do applies.
Where the line component fits
Free tools built on it, guides that use it, and the components that sit beside it.