Open sourceActive

Astro Framework

Web framework with file-based routing in src/pages, static prerendering by default and optional on-demand server rendering.

Open source page ↗

Product features

Product features

alt (required)

densities

format

getStaticPaths()

Function generating multiple prerendered page routes from one .astro component with parameters.

<Image />

Image and Assets API Reference

Imports from astro:assets

inferSize

params and props

params specify route paths (strings only); props pass additional non-URL data to each generated page.

partial export

Boolean export deciding whether a route renders as a full HTML page or a page partial; default false.

prerender export

Boolean export per route deciding whether it is prerendered; default true in static mode, false with output: 'server'.

quality

sizes

src (required)

width and height (required for images in public/ )

widths