# Events

The TelerikMediaQuery component for Blazor exposes events that allow you to respond to user actions and provide custom logic.

* [OnChange](https://www.telerik.com/blazor-ui/documentation/components/mediaquery/events#onchange)

## OnChange

The `OnChange` event fires to notify you whether the media query string provided to the `Media` parameter is matched by the browser. It fires when it matches, and when it stops matching.

> caption Use the OnChange event to resize a parent container

<demo metaUrl="client/mediaquery/events/example-1/" height="420"></demo>

## See Also

* [Overview](https://www.telerik.com/blazor-ui/documentation/components/mediaquery/overview)
* [Integration](https://www.telerik.com/blazor-ui/documentation/components/mediaquery/integration)
