© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
11 replies
N0mlss

❔ Blazor: How to have a component inside a component?

I was reading the mudBlazor documentation and I saw that they call a blazor element and inside that element, they call other elements.

I didnt know it was even possible and I have no idea how i can do something like that.

I would like to call a component and inside that one, call as much component (that is made to work inside the parent one obviously) as I want.

As an exemple, I would like to make a table but the number of columns in unknown before run time. Inside the table component, I would like to be able to call multiple element such as textbox or a combobox. Anyway, something like in the picture.

Link to the mudblazor component: https://mudblazor.com/components/treeview#basic
image.png
MudBlazor
MudBlazor - Blazor Component Library
Blazor Component Library based on Material Design. MudBlazor is easy to use and extend, especially for .NET devs because it uses almost no Javascript.
MudBlazor - Blazor Component Library
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

(Blazor) I'm having trouble accessing a variable inside a parent component.
C#CC# / help
2y ago
❔ Blazor Wasm - How to update base components from an inherited component?
C#CC# / help
4y ago
Blazor Date Picker Component
C#CC# / help
2mo ago