Image
Image component is a container for responsive images.
How it works #
The Image component provides a simple way to display images in your Blazor application, supporting Bulma's responsive image container styles.
How to use:
This demo shows the basic usage of the
How to use:
- Add the
Imagecomponent to your page. - Set the
Srcproperty to the image URL or static asset you want to display. - Optionally, use the
Dimensionproperty to control the image size (e.g.,ImageDimension.Is128x128).
Image component with a static image source and a fixed dimension.

<Image Src="@DemoStringConstants.StaticAssets_Images_Placeholders_128x128_png"
Dimension="ImageDimension.Is128x128" />Fixed square images #
The Image component supports a range of fixed square sizes, making it easy to maintain consistent layouts for avatars, icons, or thumbnails.
How to use:
This demo illustrates how to render images at various fixed square sizes for consistent presentation.
How to use:
- Use the
Imagecomponent for each image you want to display. - Set the
Dimensionproperty to one of the predefined square sizes (e.g.,Is16x16,Is24x24,Is32x32, etc.). - Provide the
Srcproperty with the image source.







<Image Dimension="ImageDimension.Is16x16" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_16x16_png" />
<br />
<Image Dimension="ImageDimension.Is24x24" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_24x24_png" />
<br />
<Image Dimension="ImageDimension.Is32x32" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_32x32_png" />
<br />
<Image Dimension="ImageDimension.Is48x48" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_48x48_png" />
<br />
<Image Dimension="ImageDimension.Is64x64" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_64x64_png" />
<br />
<Image Dimension="ImageDimension.Is96x96" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_96x96_png" />
<br />
<Image Dimension="ImageDimension.Is128x128" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_128x128_png" />Rounded images #
The Image component can display images with rounded (circular) borders, ideal for profile pictures or avatars.
How to use:
This demo shows how to create a perfectly rounded image using the
How to use:
- Add the
Imagecomponent to your page. - Set the
Dimensionproperty to the desired size (e.g.,Is128x128). - Set
IsRounded="true"to apply a circular style to the image. - Provide the
Srcproperty with the image source.
IsRounded property.

<Image Dimension="ImageDimension.Is128x128"
IsRounded="true"
Src="@DemoStringConstants.StaticAssets_Images_Placeholders_128x128_png" />Responsive images with ratios #
The Image component supports responsive aspect ratios, allowing images to scale while maintaining a consistent width-to-height ratio.
How to use:
This demo demonstrates how to use different aspect ratios to create responsive images that adapt to their container's width.
How to use:
- Add the
Imagecomponent inside a container with a fixed width (e.g., using adivwith astyleattribute). - Set the
Ratioproperty to the desired aspect ratio (e.g.,Is16by9,Is4by3,Is1by1, etc.). - Provide the
Srcproperty with the image source.
















<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.IsSquare" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_480x480_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is1by1" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_480x480_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is5by4" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_600x480_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is4by3" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_640x480_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is3by2" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_480x320_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is5by3" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_800x480_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is16by9" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_640x360_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is2by1" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_640x320_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is3by1" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_720x240_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is4by5" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_480x600_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is3by4" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_480x640_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is2by3" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_320x480_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is3by5" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_480x800_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is9by16" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_360x640_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is1by2" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_320x640_png" /></div>
<div class="mb-2" style="width: 10rem;"><Image Ratio="ImageRatio.Is1by3" Src="@DemoStringConstants.StaticAssets_Images_Placeholders_240x720_png" /></div>