You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created src/lib/Example.svelte as you suggested in the README.
<script>
// the source of the example is provided as a prop if you want it
export let src;
</script>
<div
class="container flex flex-wrap justify-center rounded-xl py-8 mx-auto bg-gradient-to-r bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 p-2 sm:p-6"
>
<slot name="example" />
</div>
<div class="code">
<pre class="language-svelte">
<slot name="code" />
</pre>
</div>
However if I don't add an extra empty line, it messes up the code as you see in the following image.
If I add an extra line there is too much space.
The text was updated successfully, but these errors were encountered:
shinokada
changed the title
Custom Example.svelte need an extra line at the top
Custom Example.svelte needs an extra line at the top
Mar 25, 2022
I created
src/lib/Example.svelte
as you suggested in the README.However if I don't add an extra empty line, it messes up the code as you see in the following image.
If I add an extra line there is too much space.
The text was updated successfully, but these errors were encountered: