Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Images and media

Images, captioned frames, videos, embedded pages, and downloadable files. Referenced assets are copied into the output automatically at build time.

Images

Standard Markdown images work, and you can click them to zoom:

![ButterIX build pipeline](/assets/pipeline.svg)

ButterIX build pipeline

Images written as HTML <img /> tags (icons or screenshots in table cells, for example) zoom on click too. Add noZoom to images that shouldn't:

<img src="/assets/logo.svg" alt="Logo" width="120" noZoom />

An image with askAi can be shown right in Ask AI's answers.

Asset paths

SyntaxResolves to
/assets/pipeline.svgassets/pipeline.svg under the project root (recommended)
../assets/pipeline.svgRelative to the current page file
https://…The external URL, referenced as-is

Referenced files are copied to /_biti/files/<path-in-project>; unreferenced files don't end up in the output. When a page references a file that doesn't exist, biti check reports an asset/missing error.

English translations live in translations/en/pages/…. Images referenced with relative paths break in translations, so always use project-root paths starting with /.

Controlling size

Use <img /> when you need to set width and height (its attributes are on the safe allowlist):

<img src="/assets/favicon.svg" alt="ButterIX icon" width="64" height="64" />
ButterIX icon

Captions

The caption of an <img /> adds a line of small gray text, centered below the image; it works in table cells too. In the visual editor, click the image and fill in “Caption”:

<img src="/assets/pipeline.svg" alt="ButterIX build pipeline" caption="From source files to static output" />
ButterIX build pipeline
From source files to static output

Use <Frame> below when you want a border.

Frame: captioned frames

<Frame> (alias <Figure>) adds a border and caption to images, videos, or embedded content:

<Frame caption="Source files are built into static output, and the runtime adds dynamic features on top" background="subtle">
  ![Build pipeline](/assets/pipeline.svg)
</Frame>
Build pipeline
Source files are built into static output, and the runtime adds dynamic features on top

The hint prop shows a line of hint text above the frame.

Videos

<Video> supports video files (native player) as well as YouTube, Vimeo, and Loom links (converted to embedded players automatically):

<Video src="/assets/demo.mp4" poster="/assets/demo-poster.png" controls />

Autoplaying videos are muted (required by browser policies). Embedded videos default to 16:9; adjust with ratio="4/3".

Embedded pages and PDFs

<Embed> (alias <IFrame>) embeds pages, live demos, or PDFs in a responsive iframe:

<Embed src="https://www.figma.com/embed?embed_host=share&url=…" title="Design mockup" ratio="16/10" />
<Embed src="/assets/whitepaper.pdf" title="Whitepaper" height="640px" />

You can also write <iframe> or <video> directly; they're on the HTML safe allowlist (src is protocol-checked).

Downloadable files

<Download src="/assets/logo.svg" filename="butterix-logo.svg">
  <Button icon="lucide:download">Download logo</Button>
</Download>

Download logo

The sources prop accepts multiple public URLs and bundles them into a ZIP download in the browser.

Icons

Use <Icon> for inline icons; it follows the text size and color: Ship, AI, Fast.

<Icon icon="lucide:rocket" /> Ship, <Icon icon="lucide:sparkles" color="#7C5CFF" /> AI, <Icon icon="fa-solid fa-bolt" /> Fast

Icon syntax (shared by the icon prop of every component):

SyntaxSource
rocket, fa-solid fa-bolt, fa-brands fa-githubFont Awesome Free
lucide:rocketLucide
https://…/icon.png, /assets/icon.svgImage
{<svg …>…</svg>}Inline SVG

Icons are collected into a per-page SVG sprite at build time and deduplicated automatically, so no icon font needs to load.

Safe handling of SVGs

SVGs can contain scripts. ButterIX attaches a strict Content-Security-Policy (sandbox) to SVG responses under /_biti/files/, so scripts don't run even when the file is opened directly. Images uploaded through the visual editor are handled the same way.