syncfusion-blazor-media-query

Detects screen size changes and binds ActiveBreakPoint for responsive Blazor UI.

4|1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-media-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: syncfusion-blazor-media-query
Source: https://github.com/syncfusion/blazor-ui-components-skills/tree/main/skills/syncfusion-blazor-media-query
Command: npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-media-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Blazor developers often need UI that adapts to mobile, tablet, and desktop devices; this skill provides a Media Query component that detects screen size and triggers layout changes to support responsive designs.

Core Features & Use Cases

  • Detect current breakpoint and bind to ActiveBreakPoint for conditional rendering
  • Support built-in Small, Medium, and Large breakpoints and customizable breakpoints
  • Integrate with Syncfusion components to create adaptive layouts across grids, charts, and navigation
  • Use case: adapt a grid to show/hide columns based on screen width for better mobile experiences

Quick Start

Add SfMediaQuery to a Razor page and bind its ActiveBreakPoint to a local variable to observe breakpoint changes.

Frequently Asked Questions about syncfusion-blazor-media-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build responsive Blazor apps that adapt layouts for mobile and desktop?

To build responsive Blazor apps, you can use a media query component to detect screen size changes and trigger adaptive layout updates. It provides built-in Small, Medium, and Large breakpoints to drive conditional UI rendering across different device contexts.

How do I detect screen size changes in Blazor to hide grid columns on mobile?

You can detect screen size changes by binding the ActiveBreakPoint property of a media query component to a local variable. This allows you to observe breakpoint changes and conditionally hide grid columns for better mobile experiences.

Can I define custom breakpoints for adaptive layouts in Blazor?

Yes, you can define custom breakpoints for adaptive layouts in Blazor. In addition to the built-in Small, Medium, and Large breakpoints, the component supports customizable breakpoints to integrate with other Syncfusion Blazor components for device-specific UI decisions.

Does the Syncfusion Media Query component support two-way binding in Blazor?

Yes, the Syncfusion Media Query component supports two-way binding for the ActiveBreakPoint property in Blazor. This allows you to automatically sync screen size changes with your UI state to drive responsive design decisions.

What is the best way to trigger device-specific UI rendering in Blazor?

The best way to trigger device-specific UI rendering is using breakpoint-based detection. A media query component identifies mobile, tablet, and desktop contexts, allowing you to adapt grids, charts, and navigation layouts dynamically.