Content blocks
Image
The image block: a centered image with radius 4 and an optional caption. With no `src` it shows the “Add an image” placeholder.
Usage
- Use the Image block for figures, screenshots and photos inside page content.
- Always provide
alttext, and a caption when the image needs context. - Show the placeholder (no
src) only while content is being edited. - Don’t use the Image block for avatars, icons or decorative UI; use
AvatarorIconinstead.
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/ImageExample.tsx
Examples
Width
Placeholder
API Reference
ImageBlock
Based on <div> and supports its props. Adds:
| Prop | Type | Default |
|---|---|---|
src | string | |
alt | string | "" |
caption | RichText | |
width | number | |
captionSlot | ReactNode | |
onPlaceholderClick | () => void |
Accessibility
- Always pass
altfor meaningful images. - The placeholder is a
role="button"withtabIndex={0}.
© 2026 Motion. Internal documentation.