I have developed some component in Blazor. All of them are inherited from BaseComponent.
public abstract class BaseComponent : ComponentBase{ [Parameter] public bool Visible { get; set; } = true; // Other properties ....}The Visible property should control if the derived components should be rendered or not.
I want all of derived components have the visibly feature (instead of writing if block in all of the components.
How can I prevent the components being rendered in base component?