@ecoba-vn/tender-feature
Version:
16 lines (15 loc) • 602 B
TypeScript
/// <reference types="react" />
declare type ButtonProps = {
text: string;
icon?: JSX.Element;
color?: "primary" | "secondary" | "success" | "info" | "warning" | "danger" | "dark" | "inherit";
tooltip?: string;
variant: "text" | "outlined" | "contained";
size?: "small" | "medium" | "large";
disabled?: boolean;
onClick?: () => void;
onMouseDown?: () => void;
onMouseUp?: () => void;
};
export default function Button({ text, icon, tooltip, variant, disabled, size, color, onClick, onMouseDown, onMouseUp, }: ButtonProps): JSX.Element;
export {};