Support of Blazor Component #2201
Replies: 4 comments
-
I'm not familiar with Blazor, so I'm not sure if I can make this happen. In the meantime, does it support Web Components? If so, you could try this package. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid that it doesn't support direct import of Web Components. Blazor components are defined as C# classes with Razor files. |
Beta Was this translation helpful? Give feedback.
-
I will try using |
Beta Was this translation helpful? Give feedback.
-
I wrote a wrapper here Jisu-Woniu/giscus-blazor and uploaded it to NuGet. I did some simple tests, but I cannot ensure they work all the time. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
It is hard to apply giscus in Blazor WebAssembly since in Blazor components, dynamic loading of JavaScript is limited.
Describe the solution you'd like
A Blazor component that can be embedded in other Blazor components.
Describe alternatives you've considered
There is a related discussion on StackOverflow with
IJSRuntime
: https://stackoverflow.com/questions/67560407/include-javascript-component-into-blazor-component. It seems the second solution suggested works.Additional context
I am trying to integrate it into my blog, so I will keep trying❤
Beta Was this translation helpful? Give feedback.
All reactions