?

Figure

Display images with optional captions and automatic asset resolution.

componentfigureimage
Edit on GitHub

Overview

The Figure component renders an image with an optional caption. It resolves relative paths through the asset pipeline, so you can reference images by filename. Standard markdown images (![alt](path)) are automatically routed through Figure.

Props

PropTypeDefaultDescription
srcstringImage path (relative to article or absolute URL)
altstring""Alt text for accessibility
captionstringOptional caption below the image
categorystringAuto-injected by MDX component map
slugstringAuto-injected by MDX component map

Usage

<Figure src="screenshot.png" alt="Dashboard view" caption="The main dashboard after setup." />

Or use standard markdown image syntax — it routes through the same resolver:

![Dashboard view](screenshot.png)

Asset resolution

Place image files in content/<category>/<slug>/ alongside your article. The sync script copies them to public/_helpbase-assets/<category>/<slug>/ at build time.