Skip to content

Image

The Image component wraps Bulma’s .image figure element. For real URLs it uses Astro’s <Image> component for optimization; for data: URIs it falls back to a plain <img>.

96×96 placeholder
<Image
src="https://bulma.io/assets/images/placeholders/96x96.png"
alt="96×96 placeholder"
size="96x96"
/>

Available sizes: 16x16, 24x24, 32x32, 48x48, 64x64, 96x96, 128x128.

32x32
64x64
96x96
128x128
<Image src="..." alt="32x32" size="32x32" />
<Image src="..." alt="64x64" size="64x64" />
<Image src="..." alt="96x96" size="96x96" />
<Image src="..." alt="128x128" size="128x128" />
16by9
<Image
src="https://bulma.io/assets/images/placeholders/1280x960.png"
alt="16by9"
ratio="16by9"
/>

Available ratios: square, 1by1, 5by4, 4by3, 3by2, 5by3, 16by9, 2by1, 3by1, 4by5, 3by4, 2by3, 3by5, 9by16, 1by2, 1by3.

rounded
<Image
src="https://bulma.io/assets/images/placeholders/96x96.png"
alt="rounded"
size="96x96"
rounded
/>
PropTypeDefaultDescription
srcstringRequired. Image URL or data URI.
altstringRequired. Alt text.
sizeFixedSizeFixed pixel size (e.g. "96x96").
ratioRatioAspect ratio class (e.g. "16by9").
roundedbooleanCircular mask on the image.
fullwidthbooleanStretches figure to full width.
classstringExtra classes on the <figure> wrapper.
stylestringInline styles on the <figure> wrapper.
imgStylestringInline styles on the <img> element.