button: set default type property
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import type { ClassValue, HTMLButtonAttributes, MouseEventHandler } from 'svelte/elements';
|
||||
import Spinner from './Spinner.svelte';
|
||||
|
||||
interface Props extends Omit<HTMLButtonAttributes, 'type' | 'class'> {
|
||||
interface Props extends Omit<HTMLButtonAttributes, 'class'> {
|
||||
icon?: string;
|
||||
animate?: boolean;
|
||||
loading?: boolean;
|
||||
@@ -14,6 +14,7 @@
|
||||
}
|
||||
|
||||
let {
|
||||
type = 'button',
|
||||
icon,
|
||||
animate = true,
|
||||
loading,
|
||||
@@ -72,6 +73,7 @@
|
||||
</script>
|
||||
|
||||
<button
|
||||
{type}
|
||||
bind:this={ref}
|
||||
class={[
|
||||
'button group relative flex gap-3 overflow-hidden rounded-sm px-5',
|
||||
|
||||
Reference in New Issue
Block a user