I want wrap this:
into reusable ViewComponent, where property will be parameter:
I think you are mixing ViewComponents and TagHelpers:https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-components
View components are invoked in the following matter:
@await Component.InvokeAsync("EditorView", @Model.Property);
// or
Try the following snippit:
the tag helpers are only invoked like this: