-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate/simplify setup steps when consuming a Blazor component library #49880
Comments
Cross-link (possibly a dup of): #47624 |
Just wanted to note that most libraries already have the first part (adding JavaScript files) covered by using modules instead and importing these as Something that would be cool to have is a parallel to this but for CSS. Ideally, this should enable dynamically adding CSS style sheets. Sadly there isn't an agreed-upon way to load CSS style sheets dynamically. But if we were to think big, I could imagine one of two solutions.
This is just me starting spit-balling a bit to start the discussion as I'm really interested in how we can make the consumption of razor class libraries easier for the consumers. |
Thanks for contacting us. We're moving this issue to the |
We think this might be viable to make the RCL template a bit more structured to show examples of auto-including JS, CSS, and using some We'd also like to improve docs to encourage this. |
Are there any plans to enable the automatic import of arbitrary CSS files (which are not part of the components and cannot currently be imported automatically by vs tooling), from the RCL into the project? |
All of the major Blazor component libraries require multiple steps in order to setup their libraries in a Blazor app. Often these steps include:
Are there perhaps some patterns here that we can enable component library authors to automate so that it's easier to consume Blazor components? Are there common framework abstractions we should be adding to Blazor so that component libraries can reuse them and better compose with each other? Is there additional guidance we should provide to help component library authors make their libraries easier to consume?
The text was updated successfully, but these errors were encountered: