at coordinate system as every other layer type.
Images
Theimage() builder and the { type: 'image' } inline syntax both accept a public HTTPS URL and optional display options.
Inline syntax
Builder function syntax
Pass a URL string for the simplest case, or an options object for more control:Image options
A public HTTPS URL. External URLs are automatically rehosted to the Ablo CDN server-side when the deck is committed — you don’t need to pre-process or proxy them. Must be a valid URL string.
How the image fills its layer box.
'cover' (default) crops to fill while preserving aspect ratio. 'contain' letterboxes the image to fit without cropping. 'fill' stretches the image to exactly fill the box.Intrinsic image width in pixels. Helps the renderer compute the correct crop when the intrinsic dimensions differ significantly from the layer box.
Intrinsic image height in pixels.
Using local or private images
External public URLs are rehosted automatically. For images that aren’t publicly accessible — files on your filesystem, authenticated CDN assets, or generated images — upload them first to get a permanent Ablo CDN URL:Example: image with rounded shape overlay
Shapes
Theshape() builder renders a vector primitive. Use shapes for backgrounds, dividers, decorative accents, callout boxes, and connector lines. All shapes accept a fill color, gradient, or structured fill stack, plus stroke and opacity controls.
Inline syntax
Builder function syntax
ShapeKind values
The geometric primitive to render.
'circle' renders a perfect circle (use square at dimensions). 'ellipse' renders a stretched oval. 'triangle' renders a filled triangle pointing up. 'line' renders a line between two endpoints — see Line shapes below.Fill options
You can fill a shape with a solid color, a CSS gradient, or a structured fill stack.Solid fill color as a CSS color string, e.g.
'#5B4CF5', 'rgba(91, 76, 245, 0.2)', or 'var(--slide-brand)'.CSS gradient string, e.g.
'linear-gradient(135deg, #5B4CF5 0%, #818CF8 100%)'. When set, takes precedence over fill.A structured fill stack for advanced compositing — solid layers, gradients, mesh gradients, image fills, and shader fills stacked in order. See the Fills reference for the full schema.
Shape opacity from
0 (fully transparent) to 1 (fully opaque). Applies to the fill only, not the stroke.Stroke options
Stroke color as a CSS color string.
Stroke thickness in pixels. Set to
0 to suppress the stroke entirely.Rectangle radius
Corner radius in pixels for
'rectangle' shapes. Applied uniformly to all four corners. Ignored for other shape kinds.Shape examples
Line shapes
The'line' shape kind draws a line between two points within the layer box. Use x1, y1, x2, y2 to position endpoints relative to the layer frame (the at box). Add arrowheads with arrowStart and arrowEnd.
Horizontal start coordinate, relative to the layer box origin.
Vertical start coordinate, relative to the layer box origin.
Horizontal end coordinate, relative to the layer box origin.
Vertical end coordinate, relative to the layer box origin.
When
true, renders an arrowhead at the start endpoint (x1, y1).When
true, renders an arrowhead at the end endpoint (x2, y2).Line endpoints (
x1, y1, x2, y2) are in the coordinate space of the layer box defined by at. A value of 0 maps to the left/top edge and 1 maps to the right/bottom edge (normalized), so a horizontal line from left to right is x1: 0, y1: 0.5, x2: 1, y2: 0.5.Icons
Theicon() builder places a single icon from the Ablo icon library. Icons are identified by a short key string — the same keys used in the Ablo editor’s icon picker. You can optionally set a fill color; the icon inherits the deck theme’s foreground color when color is omitted.
Inline syntax
Builder function syntax
Pass a key string for the simplest case, or an options object when you want to set a color:Icon options
Icon key string from the Ablo icon library, e.g.
'rocket', 'bar-chart', 'check-circle', 'globe'. Key names follow kebab-case.Fill color for the icon as a CSS color string. When omitted, the icon uses the deck theme’s default foreground color.