migrate: change settings from a store to a state
This commit is contained in:
1 parent
ffcd9faa96
commit
d597349887
128 files changed
+1010
-1144
No files matched your search
@@ -3,18 +3,18 @@
|
||||
type ButtonAlignment,
|
||||
type ButtonColor,
|
||||
} from '../button/Button.svelte'
|
||||
import { Icon, type IconSource} from 'svelte-hero-icons'
|
||||
import { Icon, type IconSource } from 'svelte-hero-icons'
|
||||
|
||||
interface Props {
|
||||
color?: ButtonColor;
|
||||
alignment?: ButtonAlignment;
|
||||
href?: string | undefined;
|
||||
disabled?: boolean;
|
||||
class?: string;
|
||||
icon?: IconSource;
|
||||
prefix?: import('svelte').Snippet;
|
||||
children?: import('svelte').Snippet;
|
||||
suffix?: import('svelte').Snippet;
|
||||
color?: ButtonColor
|
||||
alignment?: ButtonAlignment
|
||||
href?: string | undefined
|
||||
disabled?: boolean
|
||||
class?: string
|
||||
icon?: IconSource
|
||||
prefix?: import('svelte').Snippet
|
||||
children?: import('svelte').Snippet
|
||||
suffix?: import('svelte').Snippet
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
children,
|
||||
suffix,
|
||||
...rest
|
||||
}: Props = $props();
|
||||
|
||||
}: Props = $props()
|
||||
</script>
|
||||
|
||||
<Button
|
||||
@@ -53,9 +52,8 @@
|
||||
? 'text-slate-600 dark:text-zinc-400'
|
||||
: ''}
|
||||
flex-shrink-0"
|
||||
|
||||
>
|
||||
{#if !icon}
|
||||
{#if icon}
|
||||
<Icon src={icon} micro size="16" />
|
||||
{:else}
|
||||
{@render prefix?.()}
|
||||
|
||||
Reference in new issue
Block a user