['size'];
+
+export type Props = SwitchPrimitive.Props & {
+ variant?: Variant;
+ size?: Size;
+ icon?: {
+ checked: typeof Icons.Accessibility;
+ unchecked: typeof Icons.Accessibility;
+ };
+ direction?: 'switch-first' | 'switch-last';
+};
+
+export { Root, Root as Switch };
diff --git a/src/lib/components/ui/switch/switch.svelte b/src/lib/components/ui/switch/switch.svelte
new file mode 100644
index 0000000..80d2115
--- /dev/null
+++ b/src/lib/components/ui/switch/switch.svelte
@@ -0,0 +1,75 @@
+
+
+
diff --git a/src/lib/config/sitemap.ts b/src/lib/config/sitemap.ts
index 35c0e98..4c7edb6 100644
--- a/src/lib/config/sitemap.ts
+++ b/src/lib/config/sitemap.ts
@@ -230,7 +230,7 @@ export const aside_items: Aside = {
{
title: 'Switch',
href: '/switch',
- status: 'soon'
+ status: 'new'
},
{
title: 'Table',
diff --git a/src/routes/switch/+page.svelte b/src/routes/switch/+page.svelte
index e47f202..4b3dced 100644
--- a/src/routes/switch/+page.svelte
+++ b/src/routes/switch/+page.svelte
@@ -1 +1,38 @@
-switch
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/routes/switch/+page.ts b/src/routes/switch/+page.ts
new file mode 100644
index 0000000..5c655a1
--- /dev/null
+++ b/src/routes/switch/+page.ts
@@ -0,0 +1,21 @@
+import type { MetaTagsProps } from 'svelte-meta-tags';
+
+export function load() {
+ const title = 'Switch';
+ const description = 'Displays a boolean value.';
+
+ const pageMetaTags = Object.freeze({
+ title,
+ description,
+ openGraph: {
+ title,
+ description
+ }
+ }) satisfies MetaTagsProps;
+
+ return {
+ pageMetaTags,
+ title,
+ description
+ };
+}
diff --git a/src/routes/switch/default.svelte b/src/routes/switch/default.svelte
new file mode 100644
index 0000000..725f08c
--- /dev/null
+++ b/src/routes/switch/default.svelte
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/src/routes/switch/disabled.svelte b/src/routes/switch/disabled.svelte
new file mode 100644
index 0000000..059a65a
--- /dev/null
+++ b/src/routes/switch/disabled.svelte
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/src/routes/switch/sizes.svelte b/src/routes/switch/sizes.svelte
new file mode 100644
index 0000000..f762018
--- /dev/null
+++ b/src/routes/switch/sizes.svelte
@@ -0,0 +1,10 @@
+
+
+
+
+
+
diff --git a/src/routes/switch/subtle-with-icon.svelte b/src/routes/switch/subtle-with-icon.svelte
new file mode 100644
index 0000000..d243386
--- /dev/null
+++ b/src/routes/switch/subtle-with-icon.svelte
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/routes/switch/with-label.svelte b/src/routes/switch/with-label.svelte
new file mode 100644
index 0000000..15619eb
--- /dev/null
+++ b/src/routes/switch/with-label.svelte
@@ -0,0 +1,78 @@
+
+
+
+ Enable Firewall
+ Enable Firewall
+
+ Enable Firewall
+ Enable Firewall
+
+ Enable Firewall
+
+ Enable Firewall
+
+
+
+ Enable Firewall
+
+
+ Enable Firewall
+
+
+
+ Enable Firewall
+
+
+ Enable Firewall
+
+
+
+ Enable Firewall
+
+
+ Enable Firewall
+
+
+
+ Enable Firewall
+
+
+ Enable Firewall
+
+