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
Copy file name to clipboardExpand all lines: docs/boilerplate.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ All these files will be generated at your `src/_standalone/<component>` folder w
4
4
5
5
## **index.svelte**
6
6
7
-
The component written here will be transformed into a embedabble - you can treat it as **any** Svelte component and Svelte Standalone will bundle it for you.
7
+
The component written here will be transformed into a embedabble - you can treat it as **any** Svelte component and Svelte Standalone will bundle it for you.
8
8
9
9
:::warning
10
10
This is the `entry` for your vite build. You **MUST** explicitly import the global CSS files here.
@@ -17,9 +17,9 @@ Embedding logic that controls how and where the component is inserted. It follow
17
17
This is a example of a `embed file` using the [embed on body method](/embed.html#auto-embed-on-body)
importExamplefrom'./index.svelte'; // your embedabble
38
38
39
39
exporttypeExampleProps=ComponentProps<Example>; // props from your components
40
40
exportconst defaultConfig:ExampleProps= {}; // this will be used - when aplicable - as a config to start your embedabble (it'll also be used at your story when using storybook)
41
41
42
42
declareglobal {
43
-
interfaceWindowextendsMultipleEmbedWindow<typeofExample, 'example'> {} // typesafe wrapper for window.example
43
+
interfaceWindowextendsMultipleEmbedWindow<typeofExample, 'example'> {} // typesafe wrapper for window.example
Copy file name to clipboardExpand all lines: docs/introduction.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,39 +6,39 @@ Featuring _opt-in_ support for **Tailwind**, **TypeScript** or **Storybook**, it
6
6
7
7
[Just want to try it out? Let's install it.](/install)
8
8
9
-
## What Are Embedabbles?
9
+
## What Are Embedabbles?
10
10
11
-
Simply put, *embedabbles* are Svelte components designed to work in **any JavaScript environment**. Unlike regular Svelte components, an embedabble **must** be fully self-contained since it should be able to **mount itself** and function independently without relying on a specific framework or setup.
11
+
Simply put, _embedabbles_ are Svelte components designed to work in **any JavaScript environment**. Unlike regular Svelte components, an embedabble **must** be fully self-contained since it should be able to **mount itself** and function independently without relying on a specific framework or setup.
12
12
13
-
## When to Use Embedabbles?
13
+
## When to Use Embedabbles?
14
14
15
-
Embedabbles are great when you need to **embed a Svelte component anywhere**, regardless of the tech stack i.e. **third-party integrations**, **no-framework environments** or even as **microfrontends**.
15
+
Embedabbles are great when you need to **embed a Svelte component anywhere**, regardless of the tech stack i.e. **third-party integrations**, **no-framework environments** or even as **microfrontends**.
0 commit comments