Skip to content

Images

Put images in apps/docs/src/assets/ and reference them with a relative path. Astro optimizes raster images and sets their dimensions, which avoids layout shift. Always write alt text that says what the image shows.

![Wireframe of the dashboard: a sidebar, a top bar and a content area with five cards](../../../assets/dashboard-layout.svg)

Wireframe of the dashboard: a sidebar, a top bar and a content area with five cards

import { Image } from 'astro:assets';
import layout from '../../../assets/dashboard-layout.svg';
<Image src={layout} alt="Wireframe of the dashboard" width={640} />
The same wireframe, sized to 640 pixels wide
  • Prefer SVG for diagrams and interface sketches, and keep them in the design system’s neutral palette.
  • Screenshots should be of the dark dashboard, at a width of at least 1280 pixels, with no personal data.
  • Files in public/ are served as is, at the same path (public/favicon.svg is /favicon.svg). Use public/ only for files that must keep their name.