@kamrade/svelte-dynamic-button
Version:
A simple button template that supports a flexible set of themes, variants, sizes and shapes. You can find usage examples (MagicButton and SimpleButton components) in the repository.
19 lines (18 loc) • 483 B
TypeScript
export type ButtonType = 'button' | 'submit' | 'reset';
export interface IDButtonProps {
className?: string;
theme?: string;
variant?: string;
size?: string;
shape?: string;
block?: boolean;
disabled?: boolean;
convex?: boolean;
loading?: boolean;
onClick?: (e: MouseEvent) => void;
type?: ButtonType;
name?: string;
value?: string;
iconButton?: boolean;
}
export declare const getClassNames: (props: IDButtonProps) => string;