Shapes component

Shapestype: "shape"

Renders any SVG path with fill, stroke and aspect-ratio control — stars, arrows, blobs, logos and every custom vector in between.

Edit it — this is the actual editor panel
Design JSON
{
  "title": "Shape sample",
  "description": "A dynamic star shape",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-shape",
      "key": "star",
      "type": "shape",
      "position": {
        "x": 290,
        "y": 100
      },
      "rotation": 0,
      "size": {
        "width": 220,
        "height": 220
      },
      "dynamic": true,
      "properties": {
        "path": "M 50 5 L 61 38 L 95 38 L 68 59 L 79 92 L 50 70 L 21 92 L 32 59 L 5 38 L 39 38 Z",
        "viewBox": "0 0 100 100",
        "fillColor": "#F5A623",
        "strokeColor": "#D0021B",
        "strokeWidth": 0,
        "opacity": 1
      }
    }
  ]
}

Like what you built? The full editor — canvas, templates and the render API — is free to start.

Open the editor

Shapes examples

Real renders of the shapes — each one is the same component with different property values, and the API payload below each preview reproduces it exactly.

Featured-product star

A gold star with a darker outline, ready to sit beside an imagined "Editor's pick" product title.

API overrides for this example
{
  "star.fillColor": "#FBBF24",
  "star.strokeColor": "#D97706",
  "star.strokeWidth": 3
}

Star burst on a dark hero

A soft violet star as the decorative centerpiece of a dark launch-announcement backdrop.

API overrides for this example
{
  "star.fillColor": "#A78BFA"
}

All shapes styles

Every style rendered live — each is just a different set of property values on the same component, and each has its own page with a dedicated preview, use cases and API example.

Use cases

What developers typically build with the shapes component.

  • Brand marks and logo shapes stamped into generated images
  • Decorative blobs and stars behind content
  • Arrows and callouts in explainer graphics

Use it dynamically via the API

Recolor per render with '<key>.fillColor' (or just '<key>'); strokeColor, strokeWidth and even the path are overridable.

Full API request with the sample design's current values — the playground above sends only the properties you change
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "star.path": "M 50 5 L 61 38 L 95 38 L 68 59 L 79 92 L 50 70 L 21 92 L 32 59 L 5 38 L 39 38 Z",
    "star.viewBox": "0 0 100 100",
    "star.fillColor": "#F5A623",
    "star.strokeColor": "#D0021B",
    "star.strokeWidth": 0,
    "star.opacity": 1
}'

Only send the properties you want to change — everything else keeps its design value. See the API documentation for all languages.

Property reference

Every property the shapes component accepts — in the editor, in design JSON, and as API overrides.

PropertyTypeEdits asDefaultDescription
pathstringtext"M 10 10 L 90 90"SVG path data drawn inside the viewBox.
viewBoxstringtext"0 0 100 100"SVG viewBox the path coordinates are relative to.
fillColorcolor#808080"#808080"Fill color.
strokeColorcolortransparent"transparent"Stroke (outline) color.
strokeWidthnumber00Stroke width in viewBox units.
preserveAspectRatiostringtext"xMidYMid meet"SVG preserveAspectRatio value controlling how the path scales.
opacitynumber11Overall component opacity from 0 (transparent) to 1 (opaque).
borderWidthnumber00Border thickness in pixels around the component.
borderColorcolortransparent"transparent"Border color (any CSS color).
borderStyle'solid' | 'dashed' | 'dotted' | 'double' | 'none'soliddasheddotteddoublenone"solid"Border line style.
borderRadiusnumber00Corner radius in pixels.
boxShadowstringtextCSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)".

Frequently Asked Questions

Yes — the path property takes raw SVG path data with a matching viewBox, so any single-path vector renders directly.

Yes — '<key>.fillColor' (or just the key) recolors it, and strokeColor, strokeWidth and even the path itself are overridable per render.

Set fillColor to transparent and give strokeColor and strokeWidth — the Outlined variant shows exactly this.

Path coordinates are relative to the viewBox and scale to the component size; preserveAspectRatio controls whether the aspect ratio is kept.