mirror of
https://github.com/Blah-IM/Weblah.git
synced 2025-07-28 08:02:38 +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';
|
||||
class?: string;
|
||||
children?: import('svelte').Snippet;
|
||||
} & Omit<
|
||||
({ href: string } & HTMLAnchorAttributes) | ({ href?: undefined } & HTMLButtonAttributes),
|
||||
'class'
|
||||
>;
|
||||
} & (({ href: string } & Omit<HTMLAnchorAttributes, 'href'>) | HTMLButtonAttributes);
|
||||
|
||||
let { variant = 'secondary', class: externalClass, children, ...rest }: Props = $props();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue