import type { ButtonVariant } from '../button/types'; import type { IconProp } from '../icon'; import type { Snippet } from 'svelte'; type Props = { /** @default 'button' */ type?: 'button' | 'submit' | 'reset'; disabled?: boolean; /** Renders a spinner in place of the icon and blocks clicks. Passed through to Button. @default false */ loading?: boolean; /** Button color variant @default 'primary' */ variant?: ButtonVariant; /** Leading icon — passed through to Button. */ icon?: IconProp; on?: { click?: (e: MouseEvent) => void; }; children: Snippet; }; /** * DialogButton — action button for a dialog footer with a minimum width preset. Defaults to the `primary` variant. Wraps `