diff --git a/packages/ui/src/components/switch/index.ts b/packages/ui/src/components/switch/index.ts new file mode 100644 index 000000000..e429125fc --- /dev/null +++ b/packages/ui/src/components/switch/index.ts @@ -0,0 +1,7 @@ +import Root from './switch.svelte' + +export { + Root, + // + Root as Switch, +} diff --git a/packages/ui/src/components/switch/switch.stories.svelte b/packages/ui/src/components/switch/switch.stories.svelte new file mode 100644 index 000000000..9b423e61a --- /dev/null +++ b/packages/ui/src/components/switch/switch.stories.svelte @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + diff --git a/packages/ui/src/components/switch/switch.svelte b/packages/ui/src/components/switch/switch.svelte new file mode 100644 index 000000000..3cc97d2ef --- /dev/null +++ b/packages/ui/src/components/switch/switch.svelte @@ -0,0 +1,44 @@ + + +
+ + + + {#if label} + + {label} + + {/if} +