react-ladda-button
Version:
Ladda port to react in typescript and hooks
34 lines (33 loc) • 1.51 kB
TypeScript
import React from 'react';
export declare const XS = "xs";
export declare const S = "s";
export declare const L = "l";
export declare const XL = "xl";
export declare const SIZES: readonly ["xs", "s", "l", "xl"];
export declare const CONTRACT = "contract";
export declare const CONTRACT_OVERLAY = "contract-overlay";
export declare const EXPAND_LEFT = "expand-left";
export declare const EXPAND_RIGHT = "expand-right";
export declare const EXPAND_UP = "expand-up";
export declare const EXPAND_DOWN = "expand-down";
export declare const SLIDE_LEFT = "slide-left";
export declare const SLIDE_RIGHT = "slide-right";
export declare const SLIDE_UP = "slide-up";
export declare const SLIDE_DOWN = "slide-down";
export declare const ZOOM_IN = "zoom-in";
export declare const ZOOM_OUT = "zoom-out";
export declare const STYLES: readonly ["expand-left", "expand-right", "expand-up", "expand-down", "contract", "contract-overlay", "zoom-in", "zoom-out", "slide-left", "slide-right", "slide-up", "slide-down"];
export interface LaddaButtonProps {
className?: string;
progress?: number;
loading?: boolean;
disabled?: boolean;
'data-color'?: string;
'data-size'?: typeof SIZES[number];
'data-style'?: typeof STYLES[number];
'data-spinner-size'?: number;
'data-spinner-color'?: string;
'data-spinner-lines'?: number;
}
export declare const LaddaButton: React.FC<LaddaButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>>;
export default LaddaButton;