aspire-samples
aspire-samples copied to clipboard
Example: Blazor Custom Elements and Storybook UI via Aspire
I noticed that Blazor allows you to create custom elements
https://learn.microsoft.com/en-us/aspnet/core/blazor/components/js-spa-frameworks?view=aspnetcore-8.0#blazor-custom-elements
And, then I noticed that storybook supports web components
So, I am thinking about attempting to try and see if I can use a blazor web app or component library to build custom elements and try and get storybook to show it in its ui. Wanting to find and acknowledge any roadblocks or pain points with this approach and see if I can get at least something working with this.
So basically, we have a
graph LR
aspireAppHost[Aspire App Host]
storybookNpmApp[Storybook NPM App]
blazorWebApp[Blazor Web App]
blazorComponentLibrary[Blazor Component Library]
aspireAppHost --> blazorWebApp
aspireAppHost --> storybookNpmApp
storybookNpmApp --> blazorWebApp
blazorWebApp --> blazorComponentLibrary