mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
696 B
TypeScript
32 lines
696 B
TypeScript
import * as React from 'react';
|
|
|
|
export interface ButtonProps {
|
|
as?: any;
|
|
className?: string;
|
|
skin?: ButtonSkin;
|
|
priority?: ButtonPriority;
|
|
size?: ButtonSize;
|
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
fullWidth?: boolean;
|
|
suffixIcon?: React.ReactElement;
|
|
prefixIcon?: React.ReactElement;
|
|
disabled?: boolean;
|
|
dataHook?: string;
|
|
}
|
|
|
|
export default class Button extends React.Component<ButtonProps> {}
|
|
|
|
export type ButtonSkin =
|
|
| 'standard'
|
|
| 'inverted'
|
|
| 'destructive'
|
|
| 'premium'
|
|
| 'dark'
|
|
| 'light'
|
|
| 'transparent'
|
|
| 'premium-light';
|
|
|
|
export type ButtonPriority = 'primary' | 'secondary';
|
|
|
|
export type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|