mirror of
https://github.com/Blah-IM/Weblah.git
synced 2025-07-28 16:02:40 +00:00
fix: Simplify Button component props type definition
This commit is contained in:
parent
fa56942e09
commit
6bbd7a6428
1 changed files with 1 additions and 4 deletions
|
@ -6,10 +6,7 @@
|
||||||
variant?: 'primary' | 'secondary';
|
variant?: 'primary' | 'secondary';
|
||||||
class?: string;
|
class?: string;
|
||||||
children?: import('svelte').Snippet;
|
children?: import('svelte').Snippet;
|
||||||
} & Omit<
|
} & (({ href: string } & Omit<HTMLAnchorAttributes, 'href'>) | HTMLButtonAttributes);
|
||||||
({ href: string } & HTMLAnchorAttributes) | ({ href?: undefined } & HTMLButtonAttributes),
|
|
||||||
'class'
|
|
||||||
>;
|
|
||||||
|
|
||||||
let { variant = 'secondary', class: externalClass, children, ...rest }: Props = $props();
|
let { variant = 'secondary', class: externalClass, children, ...rest }: Props = $props();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue