Passing HTML Into Razor Components

Learn to pass any arbitrary HTML to Razor components.

Blazor allows us to pass any arbitrary HTML into Razor components. To demonstrate how this can be done, we have the following project setup. In this project, we are referencing a Razor component inside another Razor component and passing some arbitrary HTML into it.

Get hands-on with 1400+ tech skills courses.