May 2026
Intermediate
598 pages
10h 39m
English
A modal dialog is a UI element that captures user focus by overlaying the screen until dismissed. This chapter explores templated components by building a reusable modal dialog. Templated components enable developers to create reusable Blazor components where parent components supply custom markup content. These components can then be packaged into a Razor class library for distribution and reuse across multiple projects.
In this chapter, you will learn how to implement these patterns using RenderFragment parameters, EventCallback parameters and CSS isolation. RenderFragment parameters enable parent components to inject content into child components, and conversely, EventCallback ...
Read now
Unlock full access