New to Telerik UI for Blazor? Download Free 30-day trial

Menu - Adaptive

Telerik UI for Blazor

First Steps with Telerik Blazor Components

Telerik Blazor Components come with built-in support for WASM and server-side Blazor apps. Depending on your business needs and preferences, get started with the Client-Side UI for Blazor or get started with the Server-Side UI for Blazor.

  • Adaptive.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

The Telerik Blazor Menu can be combined with the Telerik Blazor MediaQuery component to achieve responsive and adaptive layout. The Telerik Blazor MediaQuery detects the initial dimensions of the viewport of the user's browser and rearranges the layout depending on the configuration within the Media property within the tag. It also notifies you of any subsequent changes in the viewport via the exposed OnChange event.

The demo above shows how the horizontal layout of the Blazor Menu UI component transitions to a vertical hamburger menu that is implemented with the help of the Blazor Drawer component. At width 828px and above (the width at which the menu transitions is 768px, however, the demo container has two paddings of 30px each that are included in the width for the breakpoint of the MediaQuery). At width between 560px and 828px, the Menu is substituted with a Drawer. Below 560px, the Drawer covers all available space. To see the adaptivity in action, either resize your whole browser window or open the dev tools of the browser (Press F12) and use it to modify the available width for the demo.

This Menu Adaptive example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.