@grandlinex/react-components
Version:
16 lines (15 loc) • 508 B
TypeScript
import React, { MouseEvent } from 'react';
export type ButtonProps = {
onClick: (event?: MouseEvent) => void;
text?: string;
className?: string;
color?: 'red' | 'blue' | 'yellow' | 'purple' | 'green' | 'orange' | 'cyan' | 'pink';
disabled?: boolean;
cancel?: boolean;
half?: boolean;
gap?: 0 | 2 | 4 | 6 | 8 | 10 | 12 | 24;
children?: React.ReactNode;
style?: React.CSSProperties;
};
declare const Button: (props: ButtonProps) => React.JSX.Element;
export { Button };