Svelte - Make web components!

preview_player
Показать описание
Please like and subscribe, thank you!!!
Рекомендации по теме
Комментарии
Автор

Can we get an updated version of the tutorial for Svelte 4?

supbra
Автор

With this, Svelte is like the swiss knife of web development. I can use my svelte components in react projects that I contribute to, and not have to deal with react!

MuhsinFatih
Автор

THIS!!! Great, concise vid! Been looking for something just like this to get me started on Svelte/Web Components. Keep up the vids bro!

grantsburke
Автор

Ideas on how to make a slot content get the styles placed in component? I'm not able to style slot content, in the custom component itself :/

maykbrito
Автор

Just saw it today since I only am getting started with svelte, I wish I could paste the mind-blown gif, thank you man

EladBarness
Автор

Is there anything that I should care about if I would like to use cool-button inside the cool-card?
I mean how can we use a previously written web component inside a new one in Svelte. This creates a dependency between components, can rollup need extra configurations to create a dependency graph to compile the bundle.js?

budokan
Автор

Hi! I have a question if you don't mind, is it possible to compile web components to separate files? Like compiling cool-button and cool-card to different files

federicovarela
Автор

Whats the size of that "cool components" file?..

webdesign
Автор

This is great. I have been struggling with including a charting library into a svelte custom web component. Any guidance appreciated...

markholdt
Автор

I am getting this error while creating a WEB-Component using this. Any idea why?


Uncaught TypeError: Illegal constructor

ashifiqbal
Автор

great, however if you add a link to a css library to the page index.html (bootstrap for example) those css rules do not apply to custom components, there will be some way to solve this
...?

JULIOTORRES-kmgs
Автор

wow this is SUPER cool! i dont know svelte could do that.

mrlon
Автор

I like your videos, they're always helpful

AlexReyesInHD
Автор

I want to use my whole project into widget like some sort of embedded code.
So Basically I have to use My svelte project in my other framework project (angular, vue, etc).
If anyone can help please let me know.

MMuhammadAsif
Автор

Technical question: so we are rolling a component library in this custom-element way. Here's the catch: how does one use custom-elements that are interdependent? For instance, we might have something like our-button and our-modal. our-modal actually uses (imports) our-button. However, these components are separate packages in a mono-repo top be delivered across various teams and apps. If you bring in the button bundle, and the modal bundle, you will not only get duplicate our-button code, you will also get a custom-tag definition name collision (like you did in this vid when you accidentally named both components the same thing). In the ideal world the a build tool would recognize the duplication of code, and clean things, but we cannot rely on our consumers having this rigged up. So I guess, I'm just trying to sort out an approach for delivering interdependent custom-elements without bloat or name collision. Anyone have any hot tips? Many thanks, friends!

designedfreedom
Автор

hmm, how can I use custom elements api like connectedCallback, disconnectedCallback etc?

pierre
Автор

Thanks for doing this. I suggested it and you delivered. :)

iwswordpress
Автор

Niiiceeee! thank you for the cool vid!

nomeassente
Автор

I can't thank you enough for this. I knew it was possible, but it is pretty buried in the documentation.

bmehder
Автор

Thanks for the awesome video. I'm new to Svelte but I was wondering if there is anyway I could see changes on my Button.svelte in my dev environment without building it and attach it to index.html, thanks

winepim