oneframe-react
Version:
Oneframe React ## Components, Hooks, Helper Functions & State Management
30 lines (29 loc) • 782 B
TypeScript
import React from 'react';
export interface IButtonProps {
id?: string;
name?: string;
text?: string;
className?: string;
readOnly?: boolean;
loading?: boolean;
onRef?: (val: any) => void;
disabled?: boolean;
disableFocusRipple?: boolean;
disableRipple?: boolean;
fullWidth?: boolean;
centerRipple?: boolean;
onClick?: (e?: any) => void;
iconLeft?: () => React.ReactNode | React.ReactNode;
iconRight?: () => React.ReactNode | React.ReactNode;
href?: string;
type?: 'submit' | 'reset' | 'button';
component?: any;
uploadButton?: {
accept?: any;
multiple?: boolean;
onChange?: any;
};
variant?: 'text' | 'outlined' | 'contained';
tabIndex?: number;
buttonRef?: any;
}