Skip to content

How do I use web awesome inside of Lit (Typescript) components? #56

Discussion options

You must be logged in to vote

Thanks. By design, the autoloader doesn't load components within a custom element's shadow root. If you're shipping components as a library, I strongly recommend importing component dependencies manually.

Manually importing components

Try adding this to your component, for example. (You can find copy/paste imports for each component at the bottom of each page in the docs.)

import 'https://early.webawesome.com/[email protected]/dist/components/input/input.js';

You'll probably want to load styles from the default theme, as well. Those can be found here:

https://early.webawesome.com/[email protected]/dist/themes/default.css

Using the autloader in a custom element

If you really…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@HappyCerberus
Comment options

@claviska
Comment options

Answer selected by HappyCerberus
@HappyCerberus
Comment options

Comment options

You must be logged in to vote
3 replies
@KonnorRogers
Comment options

@csuwildcat
Comment options

@KonnorRogers
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants