aspire-samples icon indicating copy to clipboard operation
aspire-samples copied to clipboard

Example: Blazor Custom Elements and Storybook UI via Aspire

Open josephaw1022 opened this issue 2 years ago • 0 comments

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

image

  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

josephaw1022 avatar Jan 12 '24 18:01 josephaw1022