You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
820 B
24 lines
820 B
/**
|
|
* Wrap of sub component which need use as Button capacity (like Icon component).
|
|
* This helps accessibility reader to tread as a interactive button to operation.
|
|
*/
|
|
import * as React from 'react';
|
|
interface TransButtonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
noStyle?: boolean;
|
|
autoFocus?: boolean;
|
|
disabled?: boolean;
|
|
}
|
|
declare class TransButton extends React.Component<TransButtonProps> {
|
|
div?: HTMLDivElement;
|
|
lastKeyCode?: number;
|
|
componentDidMount(): void;
|
|
onKeyDown: React.KeyboardEventHandler<HTMLDivElement>;
|
|
onKeyUp: React.KeyboardEventHandler<HTMLDivElement>;
|
|
setRef: (btn: HTMLDivElement) => void;
|
|
focus(): void;
|
|
blur(): void;
|
|
render(): JSX.Element;
|
|
}
|
|
export default TransButton;
|