Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

BrowserFrame

Since 0.1.0-alpha.24
Shows a screenshot inside a browser window.

A screenshot or preview shown inside a browser window: a top bar with three dots and an optional address, a border and rounded corners, as in a landing page's hero.

A screenshot

Put an Image inside, and give its Alt what the screenshot shows. To show an address in the top bar, set Address; without it, the bar shows only the dots. For a landing page, add Shadow.

Static

Preview

Northwind's dashboard: this week's revenue, orders, average order and returns, revenue by channel and top products

Code

Usage.razor
<BrowserFrame Address="northwind.example.com/dashboard" Shadow="Shadow.Lg" MaxWidth="Length.Rem(48)">
    <Image Src="img/store-dashboard.webp" Alt="Northwind's dashboard: this week's revenue, orders, average order and returns, revenue by channel and top products" IntrinsicWidth="1280" IntrinsicHeight="800" />
</BrowserFrame>

Add this example to a page with the izzy CLI:

bash
izzy add component BrowserFrame --at <file>:<line>

Details

The content fills the window's width and the corners clip it, so an image needs no radius of its own. The frame takes the theme's colors in light and dark.

Mode support

What works in each mode, BrowserFrame
FeatureStaticInteractive
EverythingYesYes

Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.

Accessibility

  • The top bar, dots and address included, has aria-hidden="true": screen readers read only the content, so put what the screenshot shows in the image's Alt.
  • The address is text, not a field or a link.

Parameters

BrowserFrame parameters
PropTypeDefault
AddressThe address shown in the top bar, such as app.example.com.string?
ChildContentWhat the window shows, usually an Image.RenderFragment?

See also

  • Image: loads an image lazily and keeps its space.
  • Section: renders a full-width band of a page, such as a hero.
  • Blocks that use it: Hero.

Connection lost

Rejoining the server…