sveltekit-embed icon indicating copy to clipboard operation
sveltekit-embed copied to clipboard

Add Loading spinner to components

Open spences10 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. When the components come into view, although they have their height set they are essentially empty until the embed loads.

Describe the solution you'd like Add a loading spinner to show in the place of the empty space.

spences10 avatar May 18 '22 14:05 spences10

I might take a look at this as soon as I have time if is still Todo.

paoloricciuti avatar Feb 02 '23 13:02 paoloricciuti

Yeah, still on the todo list 😄

spences10 avatar Feb 04 '23 08:02 spences10

+1 for that.

I'd say not only adding a spinner but allowing users to pass a slot that would be rendered while loading:


<Tweet tweetId="1234">
  <MyLoader slot="load" />
</Tweet>

raulfdm avatar Mar 15 '23 05:03 raulfdm