Skip to content

william-mba/web-component-stylesheet-import

Repository files navigation

web-component-stylesheet-import

An experiment on a better approach to dynamically import and inject stylesheet into web components.

Example

Declared

<body>
  <arrow-left></arrow-left>
  <arrow-right styleurl="./custom.css"></arrow-right>
</body>

Rendered

Notice how there is no style element here.

Rendered elements Rendered result

Edit in StackBlitz next generation editor ⚡️

About

Created with StackBlitz ⚡️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published