
+ import type { ClassValue } from 'svelte/elements'
+
+ const sizes = {
+ sm: 'text-sm',
+ md: 'text-base',
+ lg: 'text-lg',
+ }
+
+ const colors = {
+ subtle: 'text-slate-600 dark:text-zinc-400',
+ none: '',
+ }
+
interface Props {
- class?: string
+ class?: ClassValue
+ size?: keyof typeof sizes
+ color?: keyof typeof colors
+ border?: boolean
children?: import('svelte').Snippet
action?: import('svelte').Snippet
}
- let { class: clazz = '', children, action }: Props = $props()
+ let {
+ class: clazz = '',
+ children,
+ action,
+ border = true,
+ size = 'sm',
+ color = 'subtle',
+ }: Props = $props()
{@render children?.()}
-
+
{@render action?.()}
diff --git a/src/lib/components/ui/layout/pages/Tabs.svelte b/src/lib/components/ui/layout/pages/Tabs.svelte
index be3cc77f..341a8879 100644
--- a/src/lib/components/ui/layout/pages/Tabs.svelte
+++ b/src/lib/components/ui/layout/pages/Tabs.svelte
@@ -10,7 +10,6 @@
}[]
currentRoute?: SvelteURL | undefined
buildUrl?: (currentRoute: SvelteURL | undefined, href: string) => string
- class?: string
children?: import('svelte').Snippet
}
@@ -18,7 +17,6 @@
routes,
currentRoute = undefined,
buildUrl = (_, href) => href,
- class: clazz = '',
children,
}: Props = $props()
@@ -29,25 +27,24 @@